Hi All:
Can anyone tell me whats wrong with this code?
I am expecting qsysprt to be opened once and remain open regardless of how many times the program is called. After the parm "SETONLR" is received I would expect qsysprt to close. What's actually happening qsysprt is opened and closed every time the program is called.
Thanks
GLS
Can anyone tell me whats wrong with this code?
Code:
FQSYSPRT O F 132 PRINTER USROPN
C IF NOT %OPEN(QSYSPRT)
C OPEN QSYSPRT
C END
C *ENTRY PLIST
C PARM PGMNAM
C PGMNAM IFEQ 'SETONLR'
C CLOSE QSYSPRT
C SETON LR
C GOTO ENDALL
C END
C ENDALL TAG
*
OQSYSPRT E CHECKLDA 1
O PGMNAM 10
I am expecting qsysprt to be opened once and remain open regardless of how many times the program is called. After the parm "SETONLR" is received I would expect qsysprt to close. What's actually happening qsysprt is opened and closed every time the program is called.
Thanks
GLS



Comment