Search found 13 matches

by sim
Thu Nov 04, 2004 2:06 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Merging rows into a string
Replies: 3
Views: 2456

I did like this: I declared two stage variables...mergedRow, i, and totalRecCount mergedRow = If @INROWNUM = i Then InputLink.col1 else mergedRow: InputLink.col1 i = i+1 (i has initial value 0) Now, in the output link from the transformer, I put a constraint @INROWNUM = totalRecCount I am getting to...
by sim
Wed Nov 03, 2004 10:02 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Merging rows into a string
Replies: 3
Views: 2456

Merging rows into a string

I have data in a sequential file. My data look like this:

25UB|23435
25XZ|89435
25MB|46377
25MD|38204
25YN|32048

I want to convert this data to:
25UB|23435|25XZ|89435|25MB|46377|25MD|38204|25YN|32048

Thanks
by sim
Wed Nov 03, 2004 9:33 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Vertical Pivot
Replies: 7
Views: 9668

I have data in a sequential file. My data look like this:

25UB|23435
25XZ|89435
25MB|46377
25MD|38204
25YN|32048

I want to convert this data to:
25UB|23435|25XZ|89435|25MB|46377|25MD|38204|25YN|32048

My environment: DataStage 7.1 Parallel Extender in Unix server

Thanks
by sim
Wed Nov 03, 2004 8:03 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Vertical Pivot
Replies: 7
Views: 9668

How would I do this vertical pivot in DataStage 7 Parallel Extender? Any design help...what stages to use? Thanks
by sim
Mon Mar 08, 2004 12:39 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pass value between jobs
Replies: 7
Views: 4450

There is no abort messages...job1 is finished with status OK. job2 is not executed at all and job0 'is running'. Even if I stop job0, it's not stopping. job0 is reset when I compile it again. How would I put logging statements to check errors? Is there any command like 'printout', or 'cout (C++'s)' ...
by sim
Fri Mar 05, 2004 3:06 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pass value between jobs
Replies: 7
Views: 4450

Thanks for your help. I'll try both of your approach (I have lot of time!). I tried Ray's way and I have job control code like this:[code] MyVariable = 10 * Setup job1, run it, wait for it to finish, and test for success hJob1 = DSAttachJob("job1", DSJ.ERRFATAL) If NOT(hJob1) Then Call DSL...
by sim
Wed Mar 03, 2004 6:38 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Pass value between jobs
Replies: 7
Views: 4450

Pass value between jobs

Hi:
I have two jobs (Job1 and Job2). I want to pass a value from Job1 to Job2 using parameter. Job1 finds a max(column1) and this max value has to be passed to Job2's parameter. How do I do this? Thanks for your help.
by sim
Mon Mar 01, 2004 8:24 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Insert rows in more than one tables
Replies: 8
Views: 7805

In PX, it is not allowing me to have more than one link to the target Oracle stage. Any other way by which I can achieve this? THanks
by sim
Thu Feb 26, 2004 9:55 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Insert rows in more than one tables
Replies: 8
Views: 7805

By the way, 'Transaction Control' is not displayed on the stage properties. I think, we have to do something with administrator to set 'Transaction Control' in PX.
by sim
Thu Feb 26, 2004 9:51 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Insert rows in more than one tables
Replies: 8
Views: 7805

OK. Now, if I want to catch the 'abort' signal (Do I have to use unix shell script or DS BASIC routine), how would I do that? Do you think 'catching abort signal and issuing rollback' seems to be possible solution? Could you give me some outline on how I should approach this? Thanks for your time.
by sim
Thu Feb 26, 2004 10:39 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Insert rows in more than one tables
Replies: 8
Views: 7805

Insert rows in more than one tables

Is it possible to insert rows in more than one table in a single database connection? I have a target stage as Oracle(9i) and it has three tables. What I want to do is that I want to connect to this target Oracle stage only once and insert rows in all three table. Please let me know how I can do thi...
by sim
Wed Feb 25, 2004 7:46 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Warning message about nullable source
Replies: 9
Views: 4876

Hi Chulett:
I'll post my error message with more details in a seperate thread soon (I want to try couple of things tomorrow before I post). Thanks.
by sim
Tue Feb 24, 2004 6:59 pm
Forum: IBM<sup>®</sup> Infosphere DataStage Server Edition
Topic: Warning message about nullable source
Replies: 9
Views: 4876

Hi, I tried to extract data from a table (Oracle 9i) which has null values in Coulmn3. My job is like this: Oracle Stage --> Transformer --> Seq. File. When I run this job, I get error like this :'cannot export null field with out null handle'. I incorporated 'If then else' in transformer to check f...