Help in fixing Errors in Routine
Posted: Wed Feb 01, 2006 12:35 am
Hello All,
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
When I run this as an after job routine in the same job I am getting the output as -1 or sometimes -7. Could anyone please let me know what is wrong with this code and description of -1 and -7. What would be the best approach to know the jobinfo, status, starttime endtime and linkcounts.
thanks
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