IBM Version 4 Universal Remote User Manual


 
C move src_line line_nbr
C
Cᑍ Record the status code as data
C
C movel status data
C
Cᑍ Record where status located in data
C
C eval data_off = 1
C eval data_len = 5
C eval data# = 1
C
Cᑍ For illustration purposes, dump the program object
C
C eval %SUBST(objl:1:3) = pgm_name 1
C eval %SUBST(objl:31:3) = lib_name
C eval %SUBST(objl:61:1) = 'ᑍPGM'
C eval objl# = 1
C
Cᑍ Call the Report Software Error API
C
C call 'QPDLOGER'
C parm pgm_name
C parm exception msgid 12
C parm msgkey 4
C parm line_nbr
C parm 'Y' joblog 1
C parm data
C parm datapt
C parm data#
C parm objl
C parm objl#
C parm qusec
C
Cᑍ If an error on the API call, then indicate a terminal error
C
C qusbavl ifgt
C 'Terminal err'dsply
C end
C else
C
Cᑍ If error within ᑍPSSR, then indicate ᑍPSSR error
C
C 'ᑍPSSR error' dsply
C end
C
Cᑍ No matter how the program got to the ᑍPSSR, end the program
C
C move '1' ᑍinlr
C return
C endsr
Appendix B. Original Examples in Additional Languages B-121