Albert, IBM helped me with this one. The QPRTJOB is by design - it lets the user do a WRKSPLF and find all her files. To avoid using the user profile of the user, OVRPRTF OPNSCOPE(*JOB) SPLFOWN(*JOB) There may also be an API to do the same function without having to resort to spinning through a spooled file. Buck Calabro > -----Original Message----- > From: York, Albert > Sent: Friday, October 29, 1999 12:49 PM > To: 'MIDRANGE-L@midrange.com' > Subject: FTP server job can't find spool files > > I have a C/L program on the AS/400 which I use to cancel jobs which have > a > lock on a particular object. The C/L program uses the WRKOBJLCK > (specifying > *PRINT for output), then copies the spool file to a physical file, then > reads through the file to find and cancel the jobs. The program works fine > when I call it or submit it. > > When I try execute the program using the FTP RCMD command from my PC the > spool file gets created with a job name of QPRTJOB and the user ID that I > used in FTP. The FTP server job can't find the spool file and the program > fails. I get this message: > > File QPDSPOLK not found in job 307802/QTCP/QTFTP00299. > > Does anyone know of a fix or a work around for this? > > > Albert York > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: email@example.com +---
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.