Hi all,
I want to know how to export the information in the log to a file.can anybody help me out in ths..........
Thanks in Advance........
Regards,
skumar.
How to export the job log of a particular job?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 28
- Joined: Tue Aug 08, 2006 8:07 am
Re: How to export the job log of a particular job?
skumar wrote:Hi all,
I want to know how to export the information in the log to a file.can anybody help me out in ths..........
Thanks in Advance........
Regards,
skumar.
try this
dsjob -logdetail ProjectName JobName 'dsjob -logsum ProjectName JobName|head -1|awk '{print $1}'` `dsjob -logsum ProjectName JobName|grep '^[0-9]'|tail -1|awk '{print $1}'` >> FileName.log
the dsjob program is called from your UNIX shell. You will need to have your environment set up correctly in order to do this; i.e. issuing the ". ./dsenv " command in your DataStage home directory and either ensuring that $DSHOME/bin is in your path or calling dsjob with an absolute path.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Within Director, choose Print from the Project menu, then check the Print to File check box in the common print dialog and choose whatever options you desire to govern what is exported.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Re: How to export the job log of a particular job?
You missed a back tick. Sorta.kalimuddin wrote:try this
dsjob -logdetail ProjectName JobName 'dsjob -logsum ProjectName JobName|head -1|awk '{print $1}'` `dsjob -logsum ProjectName JobName|grep '^[0-9]'|tail -1|awk '{print $1}'` >> FileName.log
Kumar - also search for the equivalent commands in the DataStage online help, they all start with "DSGet" and have "Log" in them. They are the same as those available from 'dsjob' but can be used in a routine or control job.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers