Is there any cmd to check that a particular printer file exists in a specific library. RTVMBRD cmd works only on database files. Any such cmd for PRTF.If you can assume that the file in question would have to be a printer file, never a file of some other type, you can use CHKOBJ. CHKOBJ OBJ(QSYSPRT) OBJTYPE(*FILE) If it's possible that the file might exist, but be a database file, display file, or whatever, you could use the CHGPRTF command and monitor for CPF7304. CHGPRTF FILE(PRINTFILE) MONMSG MSGID(CPF7304) EXEC(DO) /* it's not a printer file, or it doesn't exist */ ENDDO DB

Reply With Quote