I need help in creating a routine which will display director log in output.
I have created routine as:-
Code: Select all
$INCLUDE DSINCLUDE JOBCONTROL.H
JobName = Arg1
hJob1 = DSAttachJob(JobName, DSJ.ERRNONE)
jobStart = DSGetJobInfo (hJob1, DSJ.JOBSTARTTIMESTAMP)
latestID = DSGetNewestLogId(hJob1,DSJ.LOGANY)
DIM evtVector(latestID)
DIM errVector(latestID)
DIM errTypeVector(latestID)
For eventID = latestID To 1 Step -1
eventDetail = DSGetLogEntry(hJob1,eventID)
Ans = eventDetail
Next eventID
Code: Select all
Result = 2010-09-16 21:41:04\TD|pk1\1\Environment variable settings:ALLUSERSPROFILE=C:\Documents and Settings\All Users
APT_COMPILEOPT=-W/TP -W/EHa -D,
<snip an awful lot of unnecessary example>
!vseverity, !jobid, moduleid, errorIndex, timestamp, !ipaddr, !nodeplayer, !nodename, opid, message
Need help.
Thanks in advance
Prasoon