Right now I have a CL program that has the following:
This is repeated for each printer in our system. I'd like to automate this.Every time we add or delete a printer we have to modify the CL program.
I'd like to automate this. I thought maybe I could change the printers I do ***NOT*** want to start automatically to have ONLINE(*NO) but how do I determine if a device has ONLINE(*NO) set?
Any ideas?
Code:
CHGVAR VAR(&WTR) VALUE('AIRP1') STRPRTWTR DEV(AIRP1) OUTQ(&WTR) ALIGN(*FILE) MONMSG MSGID(CPF0906 CPF1338 CPF1764 CPF1842 CPF2115 CPF2207 CPF3303 + CPF3305 CPF3309 CPF3330 CPF3340 CPF3342 CPF3343 CPF3347 + CPF3357 CPF3362 CPF3363 CPF3369 CPF336B CPF3418 CPF346A + CPF346B CPF3463 CPF3464 CPF3478) EXEC(DO) CHGVAR VAR(&ERRFLG) VALUE('1') ENDDO
I'd like to automate this. I thought maybe I could change the printers I do ***NOT*** want to start automatically to have ONLINE(*NO) but how do I determine if a device has ONLINE(*NO) set?
Any ideas?
Comment