IBM Version 4 Universal Remote User Manual


 
C eval pdr(x) = %addr(qpdspgm)
C eval x = x + 1
C
Cᑍ Record the failing source statement number
C
C eval qpdk7 = 2
C eval qpdkl = %SIZE(rc)
C eval qpddl = %SIZE(src_line)
C eval qpddt = 'C'
C eval qpdk8 = %ADDR(rc)
C eval qpdd = %ADDR(src_line)
C
Cᑍ and record the key:
C
C eval pdr(x) = %addr(qpds)
C eval x = x + 1
C
Cᑍ Record the status code as data
C
C eval qpdk11 = 31
C eval qpddl = %SIZE(status)
C eval qpddi = 1
C eval qpdd = %ADDR(status)
C
Cᑍ and record the key:
C
C eval pdr(x) = %addr(qpds)
C eval x = x + 1
C
Cᑍ For illustration purposes, dump the program object
C
C eval qpdk12 = 32
C eval qpdobjn = pgm_name
C eval qpdobjlib = lib_name
C eval qpdobjt = 'ᑍPGM'
C
Cᑍ and record the key:
C
C eval pdr(x) = %addr(qpdnsot)
C eval x = x + 1
C
Cᑍ Call the Report Software Error API
C
C callb qpdrse
C parm pdr
C parm x
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
B-128 System API Programming V4R1