Search found 6797 matches

by DSguru2B
Tue Sep 26, 2006 3:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: create multiple records from a single record.
Replies: 5
Views: 1895

yes, you can write a small routine that reads in a record, duplicates it 20 times and cats it together with a LF in between to split it up. Something like ToDup=trimB(Arg1) For n = 1 To 20 Ans=:ToDup:char(010):char(013) Next n You can enhance it to fit your requirement. But t...
by DSguru2B
Tue Sep 26, 2006 3:44 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Split single row into multiple rows
Replies: 1
Views: 885

Do an ereplace of that character with char(010):char(013).
by DSguru2B
Tue Sep 26, 2006 2:01 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: create multiple records from a single record.
Replies: 5
Views: 1895

Look into the link collector. Have twenty links coming out of the transformer and collect them with the link collector. This way you will have 20 copies of a single record.
by DSguru2B
Tue Sep 26, 2006 1:37 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Add month to date
Replies: 5
Views: 1689

yea, you will have to code it. Your routine should be smart enough to handle leap years, and know when to add 30 days and when to add 31 days. Its not easy, i agree, but its dooable. OR if you want the easy way out, load your flat file in a temp table and then use oracle's function of add_months in ...
by DSguru2B
Tue Sep 26, 2006 12:32 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unziping file from Windows environment
Replies: 25
Views: 9309

I was under the impression that multiple files need to be unzipped and hence i advised to go for a routine where a substantial amount of error handling can be coded. But if the unzipping is for a single file then yes, no need for a routine.
Regards,
by DSguru2B
Tue Sep 26, 2006 12:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Add month to date
Replies: 5
Views: 1689

Instead of making a call to oracle in a routine, just custom build the routine to add 30 days or 31 days to the iconv of the date. Search this forum for many examples.
Once that is done, you can do further manipulation in the transformer itself.
by DSguru2B
Tue Sep 26, 2006 12:02 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Continuous loop - Loop Activity?
Replies: 3
Views: 1181

Did you try putting the end value as a negative number?
by DSguru2B
Tue Sep 26, 2006 11:04 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: [Server] dsjob returncode list
Replies: 3
Views: 2682

Search is your best friend around here. Check out the last reply in thispost.
by DSguru2B
Mon Sep 25, 2006 9:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Unziping file from Windows environment
Replies: 25
Views: 9309

You can also use the routine activity stage in a sequence job to call the custom routine that unzips the files. This way you can control the execution incase the unzipping is unsuccessful.
by DSguru2B
Mon Sep 25, 2006 9:34 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Datawarehouse's Data Merging Considerations
Replies: 7
Views: 2002

For that you need to get your data modeler/data architect involved. Lay out a rough sketch of how the data is combinable. Handle cons, create extra tables for different/new dimensions, create fact/factless fact tables, or add new attributes to the existing tables.
by DSguru2B
Mon Sep 25, 2006 9:31 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Datastage Development Environment Setup Consideration
Replies: 6
Views: 2665

Is the module already a working piece???
Well, make sure you have enough disk space for accomodating staging files/reject files. Also, make sure you dont create any file in the datastage directory.
My 2 cents.
by DSguru2B
Wed Sep 20, 2006 2:48 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: DB2 timestamp issue
Replies: 2
Views: 602

That doesnt look like db2 timestamp to me. Isnt it suppose to be
YYYY-MM-DD HH:MM:SS.nnnnnn. That makes up 26 bytes.
by DSguru2B
Tue Sep 19, 2006 10:40 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Date format conversion: YYYY-MM-DD to YYYYMMDD
Replies: 3
Views: 4081

or you can use the following code

Code: Select all

Oconv(Iconv(InLink.Date, "DYMD[4,2,2]"), "DYMD[4,2,2]":@VM:"MCN")

OR

Code: Select all

DIGITS(InLink.Date)
by DSguru2B
Tue Sep 19, 2006 10:35 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Conver columns to rows in oracle
Replies: 5
Views: 1292

I did something like this a few months back. Check out thispost for more details.
by DSguru2B
Mon Sep 18, 2006 10:55 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Unix command Help please..
Replies: 8
Views: 2540

Google for sed operation. I think you will need to use something like

Code: Select all

sed -e 'g/Hai//s' -e 'g/Hello//s' filename

You need to double check my syntax.