|
Hello all, After two weeks away from the office I am back. We have discovered a problem with a CL I have created, the authority is not being changed on the PDF file. When we remove the monitor for the messages, we get a message waiting stating that the file does not exist, even after the 9 second delay. The code I used is below. /* Delay so job that called pgm can finish */ DLYJOB DLY(5) /* Move the spool file to the stream file */ SPL2STMF FILE(&SPLFILE) + JOB(&JOBNUM/&USERNAME/&JOBNAME) + SPLNBR(&SPLNUMBER) FROM(2) TO(*LAST) + TOSTMF(&SFNAME) DIR(&DIRNAME) /* Change the object authority to public */ DLYJOB DLY(9) CHGAUT OBJ(&PATH) USER(*PUBLIC) DTAAUT(*RWX) + OBJAUT(*ALL) MONMSG MSGID(CPA0702 CPFA0A9) I was wondering if there is a better way to change the authority? Should I put in a loop until the file does exist? Mike Wills IT Corporate Support MNWills@taylorcorp.com
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.