Search found 53125 matches

by ray.wurlod
Tue Jan 22, 2013 2:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Explicit Sort Stage Vs TSort Operator ?
Replies: 3
Views: 1684

You don't have to, but I include it amongst my "best practices" to do so, especially where the early join keys are already sorted.
by ray.wurlod
Tue Jan 22, 2013 2:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Question on correlation between partitions and nodes
Replies: 6
Views: 2314

You need to look at the job score and determine which hashing algorithm was actually used.
by ray.wurlod
Tue Jan 22, 2013 2:30 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How can I design this job with this logic?
Replies: 6
Views: 2461

Your logic is not clear, particularly If ID > 1 (if this were part of the logic your output would have five rows with ID = 1). Can you please clarify the logic?
by ray.wurlod
Tue Jan 22, 2013 2:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: replace special characters
Replies: 16
Views: 8504

Convert() converts one character to one character.

To convert n characters to m characters you need pxEreplace() or, if you have version 9.1, Ereplace().
by ray.wurlod
Tue Jan 22, 2013 2:24 pm
Forum: General
Topic: Issue in using file path in Routine
Replies: 3
Views: 1099

CREATE.FILE can not be used with a pathname. The filename argument to CREATE.FILE ends up being a VOC entry. If you want to create a pathed hashed file then you need to use the operating system command mkdbfile. Note that this command neither creates nor populates the metadata (dictionary) portion. ...
by ray.wurlod
Tue Jan 22, 2013 2:22 pm
Forum: General
Topic: Pass job parameter inside Job Control
Replies: 5
Views: 1363

Use DSGetParam() to retrieve the value from the calling job (job handle DSJ.ME) and DSSetParam() to set it, after DSAttachJob() and before DSRunJob().
by ray.wurlod
Tue Jan 22, 2013 4:38 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert each row into a column
Replies: 19
Views: 5256

Harini, you're off track. You don't need to do this. The answer is encapsulated in my earlier post on this thread.
by ray.wurlod
Tue Jan 22, 2013 4:35 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Teradata_API_21: -1 Message Not Found
Replies: 2
Views: 1702

Probably not, since the post is three and a half years old and not marked as resolved.
by ray.wurlod
Tue Jan 22, 2013 4:34 am
Forum: General
Topic: How to order Parameter Sets Values inside one Parameter Set?
Replies: 6
Views: 2294

However stage variables are not stored in files.
by ray.wurlod
Tue Jan 22, 2013 4:33 am
Forum: General
Topic: Convert to day
Replies: 11
Views: 2431

Yes, this was your requirement.
by ray.wurlod
Tue Jan 22, 2013 1:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Problem reading a sequential file
Replies: 7
Views: 2281

Try

Code: Select all

Record Delimiter String = DOS style
by ray.wurlod
Tue Jan 22, 2013 1:17 am
Forum: General
Topic: Convert to day
Replies: 11
Views: 2431

Custom trigger:

Code: Select all

 Mod(@DATE,7) <= 1
by ray.wurlod
Tue Jan 22, 2013 1:15 am
Forum: General
Topic: Datastage Director Refresh and Compile error
Replies: 7
Views: 6369

Welcome aboard, Gavin

Does a manual refresh (Ctrl+R) in Director correct the status for you?
by ray.wurlod
Mon Jan 21, 2013 7:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: change current date + different second for each row
Replies: 19
Views: 5106

Then use Arnd's solution. Job start timestamp + @INROWNUM seconds. It will give you exactly what you've specified whether or not you happen to like it.
by ray.wurlod
Mon Jan 21, 2013 7:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to convert each row into a column
Replies: 19
Views: 5256

This is not a pivot problem. This is a "remember the first nine rows in stage variables and use them to populate column1 through column9 while reading all subsequent input lines" problem. Populate the stage variables conditionally on the value of @INROWNUM. Run on a single node or in seque...