Search found 394 matches

by samsuf2002
Mon Aug 15, 2011 9:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: To trim leading zero's in a sequential file
Replies: 10
Views: 8256

If you are expecting decimal values then your source should be either decimal or numberic with given scale, then while loading into file you can convert decimal to string and trim it and also your target should be a string like varchar.
by samsuf2002
Thu Apr 14, 2011 10:59 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: rundate from header record of the file
Replies: 13
Views: 6860

Does your file contain only header and no data ?
by samsuf2002
Tue Apr 12, 2011 12:49 pm
Forum: General
Topic: File check
Replies: 7
Views: 5467

You can use this syntax to get the first value in a line of a file.

Code: Select all

sed '2!d' testinput.dat | cut -c1
I am using 2 assuming first line is a column name.

You can use this in script.
by samsuf2002
Tue Apr 12, 2011 11:48 am
Forum: General
Topic: File check
Replies: 7
Views: 5467

Could you please elaborate your requirement.

If you want to go with UNIX then you can call the UNIX command or script from before job sub-routine in PX job using ExecSH or in command activity stage in a sequence job.
by samsuf2002
Tue Apr 12, 2011 11:36 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Pad zero on leftside to integer
Replies: 3
Views: 4603

You can use FMT().
Do a search to find out how, based on your requirement.
by samsuf2002
Mon Apr 11, 2011 3:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Concatenation
Replies: 6
Views: 3994

If you want ':' between Firstname and LastName then use in column derivation

Code: Select all

FirstName:':':LastName
by samsuf2002
Mon Apr 11, 2011 2:32 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Concatenation
Replies: 6
Views: 3994

to_transf.NFNAME : to_transf.LNAME

Should be good.
by samsuf2002
Sun Mar 07, 2010 12:03 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Transform logic not working in DS8.1 working in DS 7.5.2
Replies: 2
Views: 2307

Did you search the forum ?
What is the datatype ? Is the column stated nullable ? Try "If Isnull(col) then ' ' else col" instead of NullToValue.

Also move this post to parallel forum for better response.
by samsuf2002
Wed Oct 28, 2009 2:21 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Join issue
Replies: 3
Views: 2614

Join issue

Hi All, I am trying to join 2 files based on key1(int) and key2(varchar), its not finding a match when I use both as keys although I can manually see the file and finds a match. if I remove key2 its working on Key1 but key2 is required. I tried trimming both keys in both files but still no match. Bo...
by samsuf2002
Wed Oct 21, 2009 5:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Stage variables
Replies: 2
Views: 1978

Stage variables

Hi All, I have requirement where like KEY1,KEY2,COL3 1,A,200 1,A,200 1,A,200 1,A,300 I need to check if value of COL3 changes for same KEY1 and KEY2 then I need to reject the entire existence of KEY1 KEY2 value like in the example since 1,A has different value of COL3 therefore 1,A should be exclude...
by samsuf2002
Wed Sep 16, 2009 12:19 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic
Replies: 8
Views: 4459

I was working on it and found one solution, if I could add another column to my input file say SEQ such that it look like ID|VALUE|NUMBER|SEQ 100|AA1|1|1 100|AA1|2|1 100|AA1|3|1 100|AA1|10|2 100|AA1|11|2 100|AA1|12|2 100|BB1|23|1 100|BB1|24|1 100|BB1|25|1 100|BB1|50|2 100|BB1|51|2 100|BB1|52|2 100|B...
by samsuf2002
Wed Sep 16, 2009 8:19 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic
Replies: 8
Views: 4459

The break can be at any point, it should generate a new row with minimum and maximum value for every sequence stream. if any of the next value is greater than the next sequence value (like getting 8 after 5 followed by 9,10,11)) then there should be another row having the minimum as 8 and maximum as...
by samsuf2002
Tue Sep 15, 2009 11:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Logic
Replies: 8
Views: 4459

Logic

Hi All, I have requirement where for example I have sample data ID|VALUE|NUMBER 100|AA1|1 100|AA1|2 100|AA1|3 100|AA1|10 100|AA1|11 100|AA1|12 100|BB1|23 100|BB1|24 100|BB1|25 100|BB1|50 100|BB1|51 100|BB1|52 100|BB1|53 100|BB1|54 I need the output to be ID|VALUE|NUMBER1|NUMBER2 100|AA1|1|3 100|AA1|...
by samsuf2002
Mon Aug 03, 2009 4:10 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to do reverce pivoting
Replies: 5
Views: 3693

Afraid not, not until that "direction" is added in a future release as the pivot stage just does columns to rows. This needs a "stage variable concatenation" approach in a transformer to solve, probably with a dummy/trailer row to push out the last group when it hits EOD. You ar...
by samsuf2002
Mon Aug 03, 2009 3:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to do reverce pivoting
Replies: 5
Views: 3693

And can be achieved using PIVOT stage in parallel job.