Search found 773 matches

by keshav0307
Sun Dec 20, 2009 11:27 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Clarifications for StringToDecimal and DecimalToDecima
Replies: 10
Views: 15846

how will 101 fit in decimal(7,5)? decimal (7,5) can be 99.99999
by keshav0307
Wed Dec 16, 2009 8:07 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Dynamic output files
Replies: 5
Views: 3583

if you want to do in datastage then , in a transformer stage do a mapping like

'echo ':INPUT_COLUMN:' >> ':INPUT_COLUMN:'.txt'

and the in after job subroutine, just execute the target file.
by keshav0307
Wed Dec 16, 2009 7:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: multiple update statements
Replies: 6
Views: 3171

that means if for example , the FLAG value is 3 then update column C, if 4 then D, if 5 then E etc.

Then this query should work:

update TABLE
SET C = DECODE(FLAG,3,:3, C),
D = DECODE(FLAG,4,:4, D),
E = DECODE(FLAG,5,:5, E),
F = DECODE(FLAG,6,:6, F)
WHERE A= :1 AND B = :2
by keshav0307
Wed Dec 16, 2009 7:44 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup being used on table which gets update in the same job
Replies: 9
Views: 4947

My requirment is first record should be inserted with an additional column FLAG= 'I'. If we get another record with the same key it should be updated with the column FLAG = 'U'. If the record with EMPNO=7368 is already there in table, it should also be updated?? so it can be : Desired target EMPNO ...
by keshav0307
Tue Dec 15, 2009 7:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup being used on table which gets update in the same job
Replies: 9
Views: 4947

why do you need to lookup the same table, which is being insert/update??
why can't directly use UPSERT.
by keshav0307
Tue Dec 15, 2009 6:57 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Update query hanging while running in parallel
Replies: 21
Views: 6131

check in the oracle for any table locks, wait etc... check if your SQL is waiting for any lock to be released
by keshav0307
Tue Oct 27, 2009 3:17 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Multiple rows into one row
Replies: 8
Views: 3992

you can use aggregator stage, to select max of each non key column..


Ques: what will you do if the data is like this:
Key1,Col1,Col2,Col3
1,A,Null,Null
1,D,Null,Null
1,Null,Null,B
1,Null,B,Null
1,D,Null,Null
by keshav0307
Mon Oct 12, 2009 6:31 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Create the sequential file based on condition
Replies: 3
Views: 1705

you can use an after job subroutine, to delete the file if it is empty
by keshav0307
Mon Oct 12, 2009 5:16 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Running source query at runtime
Replies: 2
Views: 1101

if the the metadata for output are same then it can be done in one query using union
by keshav0307
Mon Oct 05, 2009 1:18 am
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: how to stop the working of any compute node
Replies: 4
Views: 1715

remove the node from NODE_TABLE
by keshav0307
Wed Sep 30, 2009 6:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: problem in reading variable number of columns from file
Replies: 7
Views: 2041

Read as a single column and in a transformer use the FIELD function to split
by keshav0307
Sun Sep 27, 2009 11:17 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parallel option in Teradata Mload stage
Replies: 4
Views: 2534

If that is the case why we have even option out there?
check with IBM.

the same stage(MLOAD) is used for TPUMP also which can run in parallel.

Teradata Enterprise stage is meant for running in parallel, it uses Fastload/fastexport
by keshav0307
Fri Sep 25, 2009 3:46 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Parallel option in Teradata Mload stage
Replies: 4
Views: 2534

because you can not run more then one MLOAD on a table at a time..
making it parallel means more then one MLOAD will trigger on the target table.
by keshav0307
Mon Sep 21, 2009 6:26 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Heap Allocation Failed
Replies: 10
Views: 5041

did you try search?, its very common problem

viewtopic.php?t=109330
by keshav0307
Mon Sep 21, 2009 6:22 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: TD MLOAD truncating 11th character of CHAR(11) input -- why?
Replies: 5
Views: 2909

what is the data format? FASTLOAD or VARTEXT?