Use the Sequential File Stage. Specify first line is column names.
Use the rowcount property to read first N rows.
use before job routine to count the number of rows in a file.
N-1 Pass this value as Rowcount Parameter.
Search found 162 matches
- Tue Sep 22, 2009 3:26 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: File upload
- Replies: 3
- Views: 2003
- Tue Sep 08, 2009 10:24 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: ls -m behaving strangely
- Replies: 6
- Views: 2867
Convert The Filed Mark Value in a user variable activity
Code: Select all
Convert(@FM,"",ExecuteCommand.$CommandOutput)
- Mon Sep 07, 2009 7:05 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import from fixed length file
- Replies: 51
- Views: 16400
Read as a Single Column then check for the length and extract the Columns by using substring Function. Totally in Transformer define 6 Columns Column1 SingleColumn[1,5] Column2 If Len(SingleColumn)=30 Then SingleColumn[6,9] Else SingleColumn[6,8] and so on for other columns. This code is as per the ...
- Mon Sep 07, 2009 6:57 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Recursive lookups
- Replies: 7
- Views: 3530
- Mon Sep 07, 2009 1:07 am
- Forum: General
- Topic: ORA-24334: no descriptor for this position
- Replies: 3
- Views: 3597
- Mon Sep 07, 2009 12:22 am
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import from fixed length file
- Replies: 51
- Views: 16400
- Sun Sep 06, 2009 11:55 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import from fixed length file
- Replies: 51
- Views: 16400
- Sun Sep 06, 2009 11:42 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: How to Get the job invocation id used by a sequencer job
- Replies: 2
- Views: 1853
- Sun Sep 06, 2009 11:38 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import from fixed length file
- Replies: 51
- Views: 16400
- Sun Sep 06, 2009 11:22 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import from fixed length file
- Replies: 51
- Views: 16400
- Sun Sep 06, 2009 11:03 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import from fixed length file
- Replies: 51
- Views: 16400
- Sun Sep 06, 2009 10:46 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Import from fixed length file
- Replies: 51
- Views: 16400
Set First Line is Column Name=True. Record Length = Fixed Record Delimiter = UNIX New Line. CASDC142585654DAFSD74586KDJMEN CASDC142585655DAFSD74586KDJMEN CASDC142585656DAFSD74586KDJMEN CASDC142585657DAFSD74586KDJMEN CASDC142585658DAFSD74586KDJMEN CASDC142585659DAFSD74586KDJMEN CASDC142585660DAFSD745...
- Sun Sep 06, 2009 9:23 pm
- Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
- Topic: Cumulative Totals using Stage Variables
- Replies: 5
- Views: 2248
Sort The Year by using sort stage. And in Transformer Stage define
Svyear(Initial Variable '0')
--------------------
SvF1(Initial Variable '0')
--------------------
i haven't tested the code.
Svyear(Initial Variable '0')
--------------------
Code: Select all
YearColumn<>Svyear Then 1 Else SvYear+1
SvF1(Initial Variable '0')
--------------------
Code: Select all
Svyear=1 Then F1 Else F1 + SvF1
- Fri Sep 04, 2009 11:13 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: Selecting only specific columns from a file in unix
- Replies: 19
- Views: 3957
- Fri Sep 04, 2009 10:55 pm
- Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
- Topic: spaces causing null handling issue
- Replies: 8
- Views: 2343