Search found 72 matches

by prakashdasika
Sun Oct 17, 2010 8:28 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Trying to edit the Peek Stage properties freezes DataStage
Replies: 0
Views: 1634

From the look of it, it might be 'freezing' because the peek window is opening outside your system monitor. Try ALT+SPACE and select maximize on the window. It does not make sense that only PEEK stage freezes the client.
by prakashdasika
Tue Sep 28, 2010 9:47 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: How to prevent rounding off in ds
Replies: 6
Views: 4856

The datatype of calculated filed in aggregator will always be float. Is is not Decimal but you can do a conversion in transformer stage after the aggregation. Use DfloatToDecimal() function.
by prakashdasika
Mon Sep 20, 2010 6:56 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Missing Key Columns in Update SQL - write method Upsert
Replies: 3
Views: 3307

Change capture takes the before dataset (i.e. the existing table) and compares with the after dataset (i.e. the new records) and produces flags depending on the comparision. These flags are in a field named Change_code. The values of code represent the state of data like copy (already existing), Ins...
by prakashdasika
Mon Sep 20, 2010 6:13 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Missing Key Columns in Update SQL - write method Upsert
Replies: 3
Views: 3307

You cannot update a field unless a key is defined in the statement. If you have a single column i wonder how you can update it. :roll: i am assuming you might want to check if the value already is existing in the table and insert the new records. In that case try Change capture.
by prakashdasika
Tue Sep 14, 2010 6:33 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Implementing OR condition
Replies: 8
Views: 4979

You can do the three looks ups in three different lookup stages with the 'lookup failure' condition as continue. You are then affectively doing a left outer join on all three stages, you can capture flags in the three lookupsatges that meet the criteria and apply the required condition in a transfor...
by prakashdasika
Mon Sep 13, 2010 11:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to implement in datastage?
Replies: 5
Views: 3283

The SCD stage does not exist in 7X, you can use change capture in conjunction with Insert/Update
by prakashdasika
Mon Sep 13, 2010 11:24 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how variable stage works
Replies: 1
Views: 903

Try to include more information when asking something, like are the queries being run in the same or different jobs, how is the sequencer setup etc...
The queries can be parametized and/or the sequence can be manuplated to achieve your request
by prakashdasika
Mon Sep 13, 2010 11:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Writting NULL to a sequential File
Replies: 4
Views: 2797

If you still want to write NULL in to the fixed width file then try 'NULL ' in the CHAR(10) field
by prakashdasika
Mon Sep 13, 2010 7:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Cannot view data for sequential file
Replies: 14
Views: 14177

What type of file are you reading - Fixed width/ Delimiter, do you have any double quotes in the data. did you define any record delimiter (Unix Newline/ DOS format). Post the particluars for the readers to understand please.
by prakashdasika
Mon Sep 06, 2010 7:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: SQL Logic in Datastage
Replies: 14
Views: 11419

While using Remove duplicates sort by Field1 (ASC) and Amount (DESC) on the input link and use Field1 as the Key. This should work.
by prakashdasika
Wed Mar 17, 2010 10:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Job aborts with "Input data not sorted" error
Replies: 7
Views: 6616

Try This:

Input Tab, Partitioning Tab: Same

instead of Auto.
by prakashdasika
Wed Mar 17, 2010 10:36 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Converting string to number
Replies: 16
Views: 5626

If the source data is from database try to cast it in the sql itself as a number. Use TO_NUMBER function and read it directly as integer in datastage. This will remove the leading '0' and the key fields will be integer.