Updating in Server jobs

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
chand
Participant
Posts: 11
Joined: Wed Nov 17, 2004 7:27 pm

Updating in Server jobs

Post by chand »

Hi all,

Can any one help me finding out.. how to update the files in the server job.
I know that in parallel jobs we use change capture and chage apply stages to update the data.....

Thank you, :)
Regards,
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

To "update" a file you must read the existing file and write a new one. Do not attempt to read and write to the same sequential file, as it won't work. Simply design a job of SEQ --> XFM --> SEQ.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chand
Participant
Posts: 11
Joined: Wed Nov 17, 2004 7:27 pm

Post by chand »

Thanks Kcbland,

I guess i got your point, but little bit confused still.
you mean i dont need to do anything except using 'Xfm' Stage and writing it to new file simply.
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

Yep. One SEQ stage to output the contents of the file to a XFM stage to map it to the input of another SEQ stage. The XFM stage applies whatever changes you need to the data content.
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
chand
Participant
Posts: 11
Joined: Wed Nov 17, 2004 7:27 pm

Post by chand »

I got you, Thanks for the help 'KCbland'
Post Reply