I need some help in fixing the routine.
The purpose of this routine is to know the job status, jobinfo, starttime endtime and linkcounts.
I am calling the after job routine in the same job. The code is as follows
Code: Select all
$INCLUDE DSINCLUDE JOBCONTROL.H
JobVar=trim(field(InputArg,",",1))
StageName=field(InputArg,",",2)
LinkName=field(InputArg,",",3)
ProgramName="Testjob"
Call DSLogInfo(" JOBNAME ":JobVar, ProgramName)
Call DSLogInfo("STAGELINKS ":StageName, ProgramName)
Call DSLogInfo(" LinkName":LinkName, ProgramName)
RowCount=DSGetLinkInfo(DSJ.ME,StageName,LinkName,DSJ.LINKROWCOUNT)
Call DSLogInfo(" Number of records ":trim(RowCount),ProgramName)
ErrorCode = 0 ;* set this to non-zero to stop the stage/job
thanks