Hello All,
My requirement is that all warnings related to the job should be written to the file in the unix.I used DS routine as follows
$INCLUDE DSINCLUDE JOBCONTROL.H
Job = JobName
JobHandle = DSAttachJob(Job,DSJ.ERRWARN)
StartTime = DSGetJobInfo (JobHandle, DSJ.JOBSTARTTIMESTAMP)
EndTime = DSGetJobInfo (JobHandle, DSJ.JOBLASTTIMESTAMP)
RejLog = DSGetLogSummary(JobHandle, DSJ.LOGWARNING,StartTime,EndTime, 20)
TotalLen = Len(RejLog)
StartPnt = Index(RejLog, JobName, 1)
EndPnt = TotalLen - StartPnt
ReqRejLog = Substrings(RejLog,StartPnt,EndPnt)
Ans = ReqRejLog
But all the log information is not returned by this routine.Please give me solution.
Fetching job warnings in a file
Moderators: chulett, rschirm, roy
Hi,
Verifying that DSattachJob was successfull might help get the data.
So is verifying returned value form other routines you used.
IHTH,
Verifying that DSattachJob was successfull might help get the data.
So is verifying returned value form other routines you used.
IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)
Time is money but when you don't have money time is all you can afford.
Search before posting:)
Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
![Image](http://www.worldcommunitygrid.org/images/logo.gif)