DougCMH
07-11-2003, 04:10 AM
I have a job that runs weekly from the job scheduler. The job involves converting a spool file to a PDF in QDLS using the CVTSPLSTMF utility. It runs fine. I can also run this same CL from the command line, passing parameters (which are not passed from the scheduler). The parameters are accepted, and the RPG programs process them correctly. When called like this, the CL submits itself. When I do this, however, my CVTSPLSTMF fails with a CPFA0A8 error - Not allowed to run in a multithreaded job. This error is occurring specifically on a CPYTOSTMF command targeting my PDF file. Now, this job, when submitted by the scheduler, or submitted by me, has ALWMLTTHD set to *NO. Why am I getting this error when I submit the job, but not when the scheduler does? And is QDLS not threadsafe? (BTW, the job calls an RPG/IV program, which in turns calls another CLLE which contains the CVTSPLSTMF. Also, we moved from V5R1 to V5R2 about three weeks ago. We also have JDE installed). Any help would be appreciated.