Writing into a sequential file in a specific format....

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

karrisuresh
Participant
Posts: 57
Joined: Sat Jun 09, 2007 1:14 am
Location: chicago

Re: Writing into a sequential file in a specific format....

Post by karrisuresh »

Hi
the source stage is oracle
the target stage is file
all the file have similar records which just vary in first column
Now,
U can use a copy stage to create as many copies as u want followed by a transformer in which u can hard core or use stage variable for the first column in each individual link after the copy stage

If still my answer is not clear,
then I can give an elaborate answer

thanks

RakshaPai wrote:hello all,
faced with a new prob :(

my requirement:
SELECT A,B,C from aaa.

For each row selected, three records are written to the output file. Each one is identical except for the first field in the record. the first field has to be XXX,YYY, ZZZ. my output file is going to look something like this:
for the first record selected,
XXX-11~abc-ddd
YYY-11~abc-ddd
ZZZ-11~abc-ddd

similarly for 2nd, 3ed etc etc..... can i achieve this in DS... ? if not what else should be the aproach?

Thanks in advance!
Hi I have experience in parallel extender datastage I am ready to give/take help from other
hope we all help each other hand in hand
karrisuresh
Participant
Posts: 57
Joined: Sat Jun 09, 2007 1:14 am
Location: chicago

Re: Writing into a sequential file in a specific format....

Post by karrisuresh »

RakshaPai wrote:hello all,
faced with a new prob :(

my requirement:
SELECT A,B,C from aaa.

For each row selected, three records are written to the output file. Each one is identical except for the first field in the record. the first field has to be XXX,YYY, ZZZ. my output file is going to look something like this:
for the first record selected,
XXX-11~abc-ddd
YYY-11~abc-ddd
ZZZ-11~abc-ddd

similarly for 2nd, 3ed etc etc..... can i achieve this in DS... ? if not what else should be the aproach?

Thanks in advance!
Hi I have experience in parallel extender datastage I am ready to give/take help from other
hope we all help each other hand in hand
RakshaPai
Participant
Posts: 35
Joined: Fri Jun 15, 2007 11:21 pm

Post by RakshaPai »

some admin activities going on...
so cannot work on DS for the time being..
will implement all ur suggestions and get back..

thanks all :)
Post Reply