Search found 288 matches

by dspxlearn
Tue Aug 26, 2008 8:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Shelll Script for row count
Replies: 16
Views: 5241

Nagraj, You can incorporate 'dsjob' commands with combination of unix commands in your shell which you use to run your datastage job. Steps: Standardize all the link names from where you want to count the no. of records processed. List all your grep you into a file using -lstages using dsjob command...
by dspxlearn
Tue Aug 26, 2008 7:26 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Metadata Problem while extracting from oracle 9i table
Replies: 5
Views: 2455

Can you please disable your smiles?
Try to CAST your field to Number(n) in your SQL and use Integer(n) as your data type.

On CAST the field to Decimal(38,10) in SQL and in transformer take the value just before '.' by using Field function.

Let us know your results please.
by dspxlearn
Wed Aug 13, 2008 3:41 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: problem while setting the precesion for a column
Replies: 3
Views: 1877

By default we don't get '+' signs for any positive calculations as we get '-' sign for negative values.
If your requirement is to have an '+' sign simply concatinate '+' to your calculation result. But, your target data type should be of Varchar/Char type.
by dspxlearn
Wed Aug 13, 2008 2:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to collect the Performance Statistics of the JOB
Replies: 2
Views: 1597

sreedharmsc,

You can call the DSJOB commands in your script which actullay runs your datastage job. Take the first and last evenId of the job and then add 1 to get all your job parameters by using the 'lognewest' option with DSJOB.
by dspxlearn
Wed Aug 13, 2008 2:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Attachemet File
Replies: 5
Views: 1900

I guess you can also use "UNIX new line" as a record delimiter on the file format.
by dspxlearn
Wed Aug 13, 2008 1:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Char To Date Converstion
Replies: 11
Views: 4662

Pradeep, As Ray said, we cannot apply any kind of functions on a Null value. As per your code, if a null comes you will be Trimming which will lead you into fatal. In you derivation first check for Null values then do rest of the coding. Also, if you can get rid of redundant brackets, your code will...
by dspxlearn
Thu Aug 07, 2008 5:18 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Check if the value is a number or not
Replies: 3
Views: 1458

Check if the value is a number or not

I have a field which can have values like '111.00','12','aaa'. This field is defined as varchar field. I have to check if this field is a positive real numbers or not. For values like '111.00','123.56' and '12' - i can convert into decimal values and can use the condition '>0'. So, my concern is if ...
by dspxlearn
Thu Aug 07, 2008 3:01 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: problem while reading sequential file
Replies: 4
Views: 3013

Time to mark this thread as 'Resolved' :D
by dspxlearn
Thu Aug 07, 2008 1:40 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: problem while reading sequential file
Replies: 4
Views: 3013

It is probably trying to find double quote character (34 is the ascii value of "") and it found '1'. Check your data length and the format in the sequential file stage.
Open the file and see what it is exactly at the end of "Account_Number" field..
by dspxlearn
Mon Aug 04, 2008 7:15 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: execute command logic
Replies: 3
Views: 1549

Thanks ray,

I missed the field markers. I've used Trim with the combination of @FM - It worked. :)
by dspxlearn
Mon Aug 04, 2008 5:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: execute command logic
Replies: 3
Views: 1549

execute command logic

I have a requirement where, if the 3 field in the Unix file is 0, a notification has to be sent. I used a 'Execute command' activity after my job activity stage. In the execute command stage, i am giving as below- Command : CUT Parameters : -d, -f 3 /file.txt In the triggers section is am giving the...
by dspxlearn
Thu May 29, 2008 1:40 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Output records execution order!
Replies: 4
Views: 1623

Output records execution order!

Hi, Just wanted to know if the 'Link Execution order" option on the transformer executes on the order we give. I have two output links going out from the transformer each to the database. 1st link should delete the records from the database based on the key field. 2nd link will load the data af...
by dspxlearn
Tue May 06, 2008 8:33 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Suppress "Status Code=0" output of dsjob command
Replies: 13
Views: 11794

Ok, now here is my code: $DSTAGE_EXE/dsjob -lstages $DS_PROJECT $DS_JOB$INVOCATION_ID | grep 'Src_' > $File SrcCnt=0 TotalCnt=0 for LINE in `cat ${File}` do SrcCnt=`$DSTAGE_EXE/dsjob -stageinfo $DS_PROJECT $DS_JOB$INVOCATION_ID $LINE | grep -v 'Status code = 0' | grep "In Row Number" | cut...
by dspxlearn
Tue May 06, 2008 7:13 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Suppress "Status Code=0" output of dsjob command
Replies: 13
Views: 11794

Craig,
I was trying with the following syntax-

dsjob -stageinfo DS_PROJECT DS_JOB$INVOCATION_ID DS_STAGE | grep -v 'Status code = 0' | grep "In Row Number" | cut -f2 -d ":" | awk '{print $1}'` > /dev/null
by dspxlearn
Tue May 06, 2008 7:12 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Suppress "Status Code=0" output of dsjob command
Replies: 13
Views: 11794

Craig,
I was trying with the following syntax-

dsjob -stageinfo DS_PROJECT DS_JOB$INVOCATION_ID DS_STAGE | grep -v 'Status code = 0' | grep "In Row Number" | cut -f2 -d ":" | awk '{print $1}'` > /dev/null