You are on page 1of 1

INCLUDE DSINCLUDE JOBCONTROL.

H
cmd = "test -s " : FileName
Call DSExecute("UNIX",cmd,Output,SysRetCode)
If SysRetCode <> 0 Then
Call DSSetUserStatus("Success")
End
Else
OPENSEQ FileName to JobFile Else Call DSLogFatal("Unable to open Sequen
tial File", "After Job Routine")
READSEQ MyJobStatus From JobFile Else Call DSLogFatal("Unable to read S
equential File", "After Job Routine")
Call DSSetUserStatus(MyJobStatus)
CLOSESEQ JobFile
End
cmd = "rm -f " : FileName
Call DSExecute("UNIX",cmd,Output,SysRetCode)

ErrorCode = 0

You might also like