Search found 394 matches
- 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
- 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
- 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.
I am using 2 assuming first line is a column name.
You can use this in script.
Code: Select all
sed '2!d' testinput.dat | cut -c1
You can use this in script.
- Tue Apr 12, 2011 11:48 am
- Forum: General
- Topic: File check
- Replies: 7
- Views: 5467
- 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
- 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
- Mon Apr 11, 2011 2:32 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Concatenation
- Replies: 6
- Views: 3994
- 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
- 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...
- 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...
- 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...
- 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...
- 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|...
- 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
- 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