Search found 19 matches

by sunnymdatastage
Mon Jun 16, 2014 2:58 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: GET N rows in output based on counts
Replies: 11
Views: 5690

Suggestion 1 passes 0 records.
suggestion 2 passes all the records that I have in the input.
suggestion 3 passes less number of records the the count I have. However this was much closer but this gives only those records in output where keychange=1.
by sunnymdatastage
Mon Jun 16, 2014 2:11 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: GET N rows in output based on counts
Replies: 11
Views: 5690

None of these suggestions worked. This is a typical example where I am not able to find any specific suggestion in any forum. I would also like to add that the COL1 may not be always +1, in actual it can be 10,15,45,64 etc
by sunnymdatastage
Wed Jun 04, 2014 12:48 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: GET N rows in output based on counts
Replies: 11
Views: 5690

GET N rows in output based on counts

Example: Input: col1 col2 col3 col4 10 10/01/2011 10/31/2011 2 10 11/01/2011 11/31/2011 2 10 12/01/2011 12/31/2011 2 10 01/01/2012 01/31/2012 2 11 10/01/2011 10/31/2011 5 11 11/01/2011 11/31/2011 5 11 12/01/2011 12/31/2011 5 11 01/01/2012 01/31/2012 5 11 02/01/2011 02/31/2011 5 11 03/01/2011 03/31/2...
by sunnymdatastage
Wed Dec 04, 2013 11:37 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: xml ouput stage Repeated Header Problem.
Replies: 1
Views: 1604

xml ouput stage Repeated Header Problem.

Hello Group, I am using XML output stage. My ouput at this point is 1 and my desired ouput is 2. Please let me know what needs to be done in order to get an ouput like 2. My header are repeating , but my requirement is to have the header(open and close) only once and the childs to be repeated for ev...
by sunnymdatastage
Fri Nov 22, 2013 3:09 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: how to insert job parameter in new xml stage
Replies: 0
Views: 1354

how to insert job parameter in new xml stage

I have a scenario where I am generating an xml as output and have input columns coming from the transfomer. At this time, I am using the new xml stage (green and silver symbol). I would like to know as how can I insert a job parameter listed in the job properties to a header attribute of the xml. Ri...
by sunnymdatastage
Tue Oct 29, 2013 9:35 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sequence number to duplicates
Replies: 3
Views: 1961

I need a higher level answer to this please.
by sunnymdatastage
Mon Oct 28, 2013 1:39 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Sequence number to duplicates
Replies: 3
Views: 1961

Sequence number to duplicates

I have a scenario based question. I have an Input ID and want to add a seqID for every duplicate. If there are no duplicates then seqid should be 1 else if duplicate is found then increment seqid by 1. Below is the example of how the input and output may look. I would appreciate if someone could hel...
by sunnymdatastage
Mon Aug 05, 2013 7:47 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup_103,1: Field "ID" has keyprep export format
Replies: 11
Views: 9375

Can anyone help me on the above???? Or this is going to remain as an unsolved issue??
by sunnymdatastage
Tue Jul 30, 2013 8:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup_103,1: Field "ID" has keyprep export format
Replies: 11
Views: 9375

The datatype for reference link, input stream and output are timestamp and microseconds(extended). I went through all the post but none of them helped me. Also, I am able to view the data on my reference as well as input stream. Data from both streams come from a db2 database and I am using a db2 co...
by sunnymdatastage
Mon Jul 29, 2013 2:01 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup_103,1: Field "ID" has keyprep export format
Replies: 11
Views: 9375

Re: Lookup_103,1: Field "ID" has keyprep export fo

This doesn't Help me. Could someone please look into this error and give me a solution please.
by sunnymdatastage
Fri Jul 26, 2013 11:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Lookup_103,1: Field "ID" has keyprep export format
Replies: 11
Views: 9375

Lookup_103,1: Field "ID" has keyprep export format

I am doing a lookup on ID field. Both, input as well as reference have datatype timestamp length 26 , scale 6. When I run my job I am getting the following error Lookup_103,1: Field "ID" has keyprep export format error; value: ************************** Lookup_103,1: Failed keylookup on ta...
by sunnymdatastage
Thu Jul 25, 2013 12:41 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: yyyy-mm-dd TO MMYYYY DATASTAGE
Replies: 3
Views: 1935

yyyy-mm-dd TO MMYYYY DATASTAGE

How can I convert yyyy-mm-dd TO MMYYYY in DATASTAGE??
by sunnymdatastage
Tue Jul 23, 2013 8:14 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Group On One Column and Get Data from Other Column
Replies: 6
Views: 2892

These responses don't help me as I was looking for a generic solution using a stage variables. Some of them are partially correct but still don't give me a complete solution to my problem. Nevertheless I had to use a lookup stage and left join on PNO with the same table where cno=0 and dno=0 and gra...
by sunnymdatastage
Mon Jul 22, 2013 8:57 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: No input sort key information found
Replies: 3
Views: 5177

Yes, I was meaning that in the lookup stage previously, I had set the input and the reference links sorted on a key. That time the job ran fine.
For the next run, I removed keys from both the links and the result was the error above. Hope this is clear!!!