Search found 245 matches

by arunkumarmm
Tue Aug 17, 2010 3:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: KeyMgtGetNextValueConcurrent
Replies: 12
Views: 8368

Sort your input records before the transformer and inside the transformer

1. svOld: svNew
2. svNew: <KeyColumn>
3. svCol2: If svOld <> svNew Then svCol2 + 1 Else svCol2

Map this svCol2 to your Col2
by arunkumarmm
Tue Aug 17, 2010 2:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field from a word
Replies: 12
Views: 4806

Use Field function to extract the words based on the delimiter Anbu, creating the delimiter is my problem. I cannot replace the entire word with @FM using convert nor I can use that word as delimiter in the field function. In server I can write the derivation like, Field(Ereplace('Arun Kumar','Kuma...
by arunkumarmm
Tue Aug 17, 2010 2:14 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field from a word
Replies: 12
Views: 4806

No Anbu. My requirement is to split the input string into two, if the words are not equal maximum words should be on the second column. No. of words are dynamic in the input. Eg., Str = "One Two Three Four" O/P: C1 = 'One Two" C2 = "Three Four" If Str = "One Two Three F...
by arunkumarmm
Tue Aug 17, 2010 1:59 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field from a word
Replies: 12
Views: 4806

Use Field function to extract the words based on the delimiter Anbu, creating the delimiter is my problem. I cannot replace the entire word with @FM using convert nor I can use that word as delimiter in the field function. In server I can write the derivation like, Field(Ereplace('Arun Kumar','Kuma...
by arunkumarmm
Tue Aug 17, 2010 1:35 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Field from a word
Replies: 12
Views: 4806

Field from a word

My requirement is to split the incoming string based on the no. of words. If the source data has four words, my output should be C1 - first 2 words and C2 - next 2 words. If there are 7 words, C1 - 3 words and C2 - next 4 words. I can count the no. of spaces and div by 2 and find the word from which...
by arunkumarmm
Tue Aug 17, 2010 9:55 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: "like" in Stage Variables
Replies: 9
Views: 4915

Or you can even use Count...
by arunkumarmm
Fri Aug 13, 2010 2:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: EBCDIC date issue
Replies: 4
Views: 4372

If the NLS is EBCDIC, it will convert the data to ASCII.

Also, dtx is to convert decimal to hex right? Will it convert EBCDIC to ASCII?
by arunkumarmm
Fri Aug 13, 2010 1:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Non-Alpha numeric characters
Replies: 6
Views: 2746

Yes, I was even searching for it and found that there is no equivalent function in PX for server 'ereplace' :(

But I believe ereplace will work in BASIC_Transformer.
by arunkumarmm
Fri Aug 13, 2010 1:37 pm
Forum: General
Topic: My loop stopped working
Replies: 6
Views: 2328

I too had a similar problem where the job activity before the end loop behaved as it had the 'Unconditional' trigger. I included a Nested condition between the job activity and the end loop and defined something like EXXXX_AddDetailAndTrailer.$JobStatus = DSJS.RUNOK and connected this to end loop. I...
by arunkumarmm
Fri Aug 13, 2010 1:07 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Joining using Transformer Stage
Replies: 6
Views: 3119

If you do not have any constrain, It will be left.

If you want a inner join use Not(<LookupLinkName>.NOTFOUND) in the constrain.
by arunkumarmm
Fri Aug 13, 2010 1:04 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Iconv oconv
Replies: 10
Views: 7187

Balu, I think you had the same question in a different post. Please refer your old post
by arunkumarmm
Fri Aug 13, 2010 10:42 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Server routine compile error in Version 8
Replies: 7
Views: 2266

Just include Line = '' in the begining of your routine
by arunkumarmm
Fri Aug 13, 2010 12:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: DS v8.1 will work in Window 7
Replies: 4
Views: 3581

Yes it will. We are upgrading and they did a POC and it worked.
by arunkumarmm
Thu Aug 12, 2010 5:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Need help in doing substring
Replies: 10
Views: 4392

You can use the code as suggested by Anbu with a little modification

Nm:Zinman, Dr Bernard (Mount Sinai Hospital, Toronto)
svLastNm=Field(Nm,",",1)
svFirstNm=Field(Field(Field(Nm,",",2),"(",1),' ',Count(Field(Field(Nm,",",2),"(",1),' ')+1)
by arunkumarmm
Wed Aug 11, 2010 2:23 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date Conversion
Replies: 13
Views: 6683

You should be able to change it to Custom SQL, I'm not sure why it is not enabled for you. And for Iconv((),'d4') will convert any of the following dates to internal format, if it is a value other than a valid date, it will convert it to NULL. July 4, 2002 July 4 02 4 July 2002 4 July 02 4 JUL 02 4 ...