dsjob question

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
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

dsjob question

Post by I_Server_Whale »

Hi All,

I have a project called 'dev', wherein I have a job 'seq2test'.

I have written a batch file as follows:

Code: Select all

e:\ascential\datastage\engine\bin\dsjob -logsum dev seq2test
This batch file displays the log summary of the job. how do write this displayed information to a flat-file. Any little help would be of great magnitude.

Thanks much,
Naveen.
pnchowdary
Participant
Posts: 232
Joined: Sat May 07, 2005 2:49 pm
Location: USA

Post by pnchowdary »

Hi NaveenD,

Try redirecting the output of the command to a flat file

Code: Select all

e:\ascential\datastage\engine\bin\dsjob -logsum dev seq2test > log.txt
Hope that helps.
Thanks,
Naveen
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Thanks PNChowdary,
:)
Naveen.
pnchowdary
Participant
Posts: 232
Joined: Sat May 07, 2005 2:49 pm
Location: USA

Post by pnchowdary »

Hi NaveenD,

One more tip along the same lines. If you want to append to an existing file and not overwrite it, use >>

Code: Select all

e:\ascential\datastage\engine\bin\dsjob -logsum dev seq2test >> log.txt
Thanks,
Naveen
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

Hi Chowdary,

Cool deal! You are good at DOS. Thats nice. Thanks again,

Naveen.
pnchowdary
Participant
Posts: 232
Joined: Sat May 07, 2005 2:49 pm
Location: USA

Post by pnchowdary »

Hi NaveenD,

The same holds good for UNIX. Actually I picked these tips from working on UNIX :wink:

Glad that I could be of help.
Thanks,
Naveen
Post Reply