×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Sorry, sent to the wrong list. Meant to send it to midrange list.

Mike Wills
IT Corporate Support
MNWills@taylorcorp.com


-----Original Message-----
From: Wills, Mike N. (TC) [mailto:MNWills@taylorcorp.com]
Sent: Monday, August 20, 2001 9:12 AM
To: 'RPG400-L@midrange.com'
Subject: PDF file problems


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 _______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2026 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.