C myinfsr begsr
C ... file error
C endsr '*GETIN'
If you also want to ignore program errors encountered when processing the data in a record, code a *PSSR subroutine the same way. If you don't have any file-specific processing in your INFSR subroutine, you can use the *PSSR as the INFSR.
C *pssr begsr
C ... general error
C endsr '*GETIN'
If you don't always want to just go straight to the next record, you can soft-code the return point on the ENDSR.
D infsrEnd s 6a
D recordLock c 1218
C myinfsr begsr
C eval infsrEnd = '*CANCL'
C if %status(myfile) = recordLock
C eval infsrEnd = '*GETIN'
C endif
C endsr infsrEnd
Barbara Morris can be reached by email at
LATEST COMMENTS
MC Press Online