Return to the RPG Tips
Getting JOBNAME/USER/NUMBER for the CPYSPLF Command
I want the CLP to do the CPYSPLF without the user having to fill in the JOBNAME/USER/NUMBER When I look at the spool it is a job called QPRTJOB/PERSON/093515. How can I get these parms into CPYSPLF?
I'm guessing that the program creating the spooled file is an RPG program (hence the post to the RPG list). In that case, check the File Information Data Structure for the spooled file. You can get the information you need from:
D SPOOL_FILE 103 112 D SPOOL_LIB 113 122 D SPOOL_NUM 123 124I 0You can easily pass these as parameters to CPYSPLF or SNDNETSPLF...
Buck Calabro
[report a broken link by clicking here]