Search found 6797 matches

by DSguru2B
Tue Jun 19, 2007 2:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: dsjob in Information Server
Replies: 4
Views: 967

Yes. The dsenv file needs to be sourced every time you start a fresh session to set the environment variables.
Source the dsenv in your .profile so that it gets executed everytime you login.
by DSguru2B
Tue Jun 19, 2007 1:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: folding a single record into multiple records at fixed width
Replies: 24
Views: 7200

O yes. It is unix and not windows . You only need char(010). Check the row count of your target. How do you know its not showing up? Also try to run in sequential mode and see if its working. To parse the input record, you need to write a custom C program that inserts a new line character after ever...
by DSguru2B
Tue Jun 19, 2007 12:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: folding a single record into multiple records at fixed width
Replies: 24
Views: 7200

Just the way you showed.

Code: Select all

in.col[1,5]:char(013):char(010):in.col[6,5]:char(013):char(010) and so on...
by DSguru2B
Tue Jun 19, 2007 11:53 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: null handling error
Replies: 17
Views: 5667

Are there any other surrounding error/warning messages? See if this post helps.
by DSguru2B
Tue Jun 19, 2007 11:16 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: execution of a job hangs after a few seconds
Replies: 2
Views: 1140

Welcome Aboard :)
Enclose your ascii art in [code] tags. Its hard to tell the design otherwise.
The other oci stages might be waiting to finish the query. Are your queries just simple selects or complex joins and other functions?
by DSguru2B
Tue Jun 19, 2007 11:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: folding a single record into multiple records at fixed width
Replies: 24
Views: 7200

Substrings are pretty fast. It should not have any performance impact. Run a test on 25% of your expected input.
by DSguru2B
Tue Jun 19, 2007 10:49 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: folding a single record into multiple records at fixed width
Replies: 24
Views: 7200

Well then in the transformer, you can substring and add Char(013):Char(010) after every fifth position. This way you are adding a unix new line character which will split them.
by DSguru2B
Tue Jun 19, 2007 10:05 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: folding a single record into multiple records at fixed width
Replies: 24
Views: 7200

Is it a single column input and single column output?
by DSguru2B
Tue Jun 19, 2007 9:00 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Loading and Deleting in a Single Unit of Work
Replies: 7
Views: 1220

Sure. You can pass the delete command in the OPEN/CLOSE option of the enterprise stage and do your regular operation of load or upsert.
by DSguru2B
Tue Jun 19, 2007 7:21 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DataStage Parallel Routines and Malloc/New
Replies: 8
Views: 10233

Allocating memory with malloc, like the one I allocated for result, does allocate equivalent to the size of a char pointer. As I have written many more px routines after this one, I found out that its better to explicitly specify the size of the input string rather than just the pointer (Had memory ...
by DSguru2B
Tue Jun 19, 2007 7:11 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Value passed to a job parameter in the latest run
Replies: 3
Views: 1240

You need to parse the value out of the very first entry of the log. Before you run the job, get the event id by the "-lognewest" option. At the end of the job, get the "logdetail" for that particular (event Id + 1). This will be the very first entry of your run which will contain all the parameter v...
by DSguru2B
Tue Jun 19, 2007 7:05 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Use of Command Line to list datastage jobs
Replies: 7
Views: 12875

ArndW- You are 100% correct. I just wanted to make sure whether a simple 'dsjob -ljobs' command is working for the OP or not, sitting on the same engine ofcourse. Once that was out of the way, then the OP could have brought in the other tokens. I know my previous post sounded like the -user option i...
by DSguru2B
Mon Jun 18, 2007 12:58 pm
Forum: General
Topic: Get Data from the Database based on a key column.
Replies: 10
Views: 1826

Consequently, you can load your value into a staging table and then use your sql query to join this staging table. Thats another way.
by DSguru2B
Mon Jun 18, 2007 10:33 am
Forum: General
Topic: Get Data from the Database based on a key column.
Replies: 10
Views: 1826

No. If you turn on "Multi-row result set". You should not get any warnings.
by DSguru2B
Mon Jun 18, 2007 10:28 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Use of Server routines in Parallel Jobs
Replies: 13
Views: 5475

Yes. The best way is to convert your code to C++ code.
These function exist in C++ versions as well. Look at the Parallel Advanced Developer's guide.