Search found 162 matches

by laknar
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

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.
by laknar
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) 
by laknar
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 ...
by laknar
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

Why not define Reference Table for all Combinations. Key Value 200 100 300 100 400 100 600 500 700 500 1000 900 1100 900 Field(InputData,':',2)--Output of this to be used to Lookup in Reference Table(Key Column).
by laknar
Mon Sep 07, 2009 1:07 am
Forum: General
Topic: ORA-24334: no descriptor for this position
Replies: 3
Views: 3597

May be ODBC Stage has Both Generated Query as well as User defined query.
Check and Correct.
by laknar
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

Try to create two temp file one with 30 bytes and another with 33 bytes

awk 'length>30' Filename > 30byteFilename_temp(your Convenient)

awk 'length=30' Filename > 33byteFilename_temp(your Convenient)
by laknar
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

Try the schema Definitions.

Enable the multiple instance invoke the same job for Various file formats.
Store the schema file infile systems.invoke the schema file through parameter.
by laknar
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

try

dsjob -linvocations Projectname jobname
by laknar
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

i can see There is no record type field in your file.

Usually REC_TYPE is one byte.
Modify the file accordingly.Define in Columns tab Char=1
by laknar
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

As Ray adviced If you specify the Datatype = Char
we shoud not specify this option record length = fixed.since char is fixed length datatype.

Just define final delimiter = end.

and remove the delimiter property.i.e Delimiter=Comma
by laknar
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

what is length for the header.

Header length should same as Other Records length.
try import through sequential file definitions.
by laknar
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...
by laknar
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')
--------------------

Code: Select all

YearColumn<>Svyear Then 1 Else SvYear+1 



SvF1(Initial Variable '0')
--------------------

Code: Select all

Svyear=1 Then F1 Else F1 + SvF1
i haven't tested the code.
by laknar
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

Read all the columns from file and then map only the columns that you want in transformer stage.
by laknar
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

Trim the field when extracting from table itself.
Or have a transformer before dataset and do the null handling.

You have to make sure the Field Value length must be less then the Column length.