Search found 9 matches

by Plagvreugd
Thu Sep 18, 2014 9:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: more than one final delimiter?
Replies: 8
Views: 4915

I don't know a way to *really* use several delimiters in one sequential file stage. But perhaps you can cope with this by using a Filter in the sequential file stage. Here you can define a filter program that for example would change all pipebars in the file into end-characters, so instead of two de...
by Plagvreugd
Mon Dec 28, 2009 2:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Comment Job Activity in Job Sequence
Replies: 3
Views: 2123

Perhaps more a workaround than a solution... You can choose the execution action for Job Activities in a Sequence. This drop down box gives you the option to (for example) just validate the job instead of running it. Another option is to just make the sequence more intelligent (=more complex), by ad...
by Plagvreugd
Sun Aug 09, 2009 12:29 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SQL to turn multivalue fields into multiple rows
Replies: 4
Views: 1937

Seems like I just answered a very similar post. viewtopic.php?t=128756

By the way, please give your questions a subject that's a bit more descriptive. ;)
by Plagvreugd
Sun Aug 09, 2009 12:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: one record for each value which are seperated by delimitter
Replies: 8
Views: 4742

If the number of 'columns' in the field EMP_SKILLS is not very high you can achieve your goal within a normal Transform-stage by using the field-function. - Make as many outpulinks as the maximum number of 'columns' you need to extract from the field EMP_FIELDS. - Output the necessary columns and th...
by Plagvreugd
Thu Aug 06, 2009 5:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Naming a hash file based on the Invocation id
Replies: 8
Views: 3361

but I see no way in using that in the Filename property. Why can't you use in file name ? apart from the business reasons. ... According to the Help (under Defining Hashed File Input Data ) you can use macros in the file name property, which in thought you couldn't. Quote: The name of the file the ...
by Plagvreugd
Thu Aug 06, 2009 3:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Naming a hash file based on the Invocation id
Replies: 8
Views: 3361

Sainath.Srinivasan wrote:You can create the hashed file with a parameter value as its name. ...
So just add a parameter with the invocation-id in the job and use that in the filename.

You can also extract the invocation-id in a job from DSJobname, but I see no way in using that in the Filename property.
by Plagvreugd
Wed Aug 05, 2009 12:18 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Case and If statement issue in the sql
Replies: 15
Views: 10107

To me this desciption is a bit different from the example in your OP. In your first post the result will not just have a different number of records, but it contains different columns: COMPANY instead of VENDOR. Have you tried, as priyadarshikunal suggests, to run these queries directly in DB2? That...
by Plagvreugd
Wed Aug 05, 2009 10:58 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Case and If statement issue in the sql
Replies: 15
Views: 10107

Re: Case and If statement issue in the sql

priyadarshikunal wrote: No. Both ways are equivalent.
Yes I figured that out myself and already had removed most of my post :)
by Plagvreugd
Wed Aug 05, 2009 10:08 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Case and If statement issue in the sql
Replies: 15
Views: 10107

Re: Case and If statement issue in the sql

An alternative approach might be, steering away from parameterized SAL and towards DataStage-functionality, to use a sequence in which you use a UserVariables-Activity. You can use an if-function here to 'calculate' the correct SQL based on your parameter and then insert the value of this variable i...