Page 1 of 1
dsjob question
Posted: Tue Jul 26, 2005 2:58 pm
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.
Posted: Tue Jul 26, 2005 3:03 pm
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.
Posted: Tue Jul 26, 2005 3:09 pm
by I_Server_Whale
Thanks PNChowdary,
Naveen.
Posted: Tue Jul 26, 2005 3:16 pm
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
Posted: Tue Jul 26, 2005 3:30 pm
by I_Server_Whale
Hi Chowdary,
Cool deal! You are good at DOS. Thats nice. Thanks again,
Naveen.
Posted: Tue Jul 26, 2005 3:33 pm
by pnchowdary
Hi NaveenD,
The same holds good for UNIX. Actually I picked these tips from working on UNIX
Glad that I could be of help.