000001 /* REXX */
000002 Parse Arg Dsplay
000003 /*********************************************************/
000004 /* Loop through the input file to get printer names. */
000005 /*********************************************************/
000006 trace o
000007 "ALLOC DA('FL1T.LRS.VPSFCB.CNTL(VPSMLIS2)') F(INPUTZ) SHR"
000008 ADDRESS MVS "EXECIO * DISKR INPUTz (FINIS STEM MYVAR."
000009 "FREE FILE(INPUTZ)"
000010
000011 DO X = 1 TO MYVAR.0
000012 LINE_IN = MYVAR.x
000013 IF index(LINE_IN,'*') = 1 then iterate
000014 Parse VAR line_in Pname Da1 Da2 Da3 Da4 Da5 Da6 Da7 Da8
000015 CALL Subroutine
000016 END
000017
000018 Exit
000019 SUBROUTINE :
000020 Pname = STRIP(PNAME,,',')
000021
000022 q = "'"
000023 dsname1 = q ||'FL1T.LRS.VPSFCB.PRINTERS(' || pname || ')' || q
000024
000025 "ALLOC DA(" || DSNAME1 ||" ) F(INPUTY) SHR"
000026
000027 "free file(INPUTY)"
000028 SAY 'PFound= ' PNAME
000029 RETURN
000002 Parse Arg Dsplay
000003 /*********************************************************/
000004 /* Loop through the input file to get printer names. */
000005 /*********************************************************/
000006 trace o
000007 "ALLOC DA('FL1T.LRS.VPSFCB.CNTL(VPSMLIS2)') F(INPUTZ) SHR"
000008 ADDRESS MVS "EXECIO * DISKR INPUTz (FINIS STEM MYVAR."
000009 "FREE FILE(INPUTZ)"
000010
000011 DO X = 1 TO MYVAR.0
000012 LINE_IN = MYVAR.x
000013 IF index(LINE_IN,'*') = 1 then iterate
000014 Parse VAR line_in Pname Da1 Da2 Da3 Da4 Da5 Da6 Da7 Da8
000015 CALL Subroutine
000016 END
000017
000018 Exit
000019 SUBROUTINE :
000020 Pname = STRIP(PNAME,,',')
000021
000022 q = "'"
000023 dsname1 = q ||'FL1T.LRS.VPSFCB.PRINTERS(' || pname || ')' || q
000024
000025 "ALLOC DA(" || DSNAME1 ||" ) F(INPUTY) SHR"
000026
000027 "free file(INPUTY)"
000028 SAY 'PFound= ' PNAME
000029 RETURN