IBM Version 4 Universal Remote User Manual


 
Cᑍ Process the data based on key type
C
C QUSKRC CASEQ21 FILNAM 25
C QUSKRC CASEQ211 PAGES
C QUSKRC CASEQ216 AGE
C CAS ERROR
C END
C
Cᑍ Adjust X to address next keyed record returned
C
C ADD QUSKRB X
C ENDDO
C
Cᑍ Output information on spooled file
C
C EXCPTPRTLIN 26
C
Cᑍ Adjust START to address next entry
C
C ADD 1 COUNT 27
C ADD QUSBPT START
C ENDDO
C ENDIF
C ELSE 15
C EXCPTLSTERR
C ENDIF
C ELSE 13
C EXCPTHDRERR
C ENDIF
C MOVE '1' ᑍINLR 28
C RETRN
C
Cᑍ Various subroutines
C
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C FILNAM BEGSR
C
Cᑍ Extract spooled file name for report
C
C MOVE ᑍBLANKS PRTFIL 1
C QUSKRG SUBSTRECVR:Y PRTFIL
C ENDSR
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C PAGES BEGSR
C
Cᑍ Extract number of pages for report
C
C QUSKRG SUBSTRECVR:Y PAGESA
C ENDSR
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C AGE BEGSR
C
Cᑍ Extract age of spooled file for report
C
C MOVE ᑍBLANKS OPNDAT 7
C QUSKRG SUBSTRECVR:Y OPNDAT
C ENDSR
Cᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍᑍ
C ERROR BEGSR
C
Cᑍ If unknown key value, then display the value and end
C
C DSPLY QUSKRC
C MOVE '1' ᑍINLR
C RETRN
C ENDSR
O
OQSYSPRT E PRTLIN
O PRTFIL 1
O PAGES# 25
O OPNDAT 4
OQSYSPRT E LSTERR
Chapter 3. Common Information across APIs—Basic (OPM) Example
3-27