|
At 09:55 12.12.00 -0500, you wrote: > I send a user a SPOOL file using option 1 SEND WRKJOB >OPTIONS(SPLF). > I want the CLP to do the CPYSPLF without the user having to fill in >the JOBNAME/USER/NUMBER When you do not want the user to use SNDNETSPLF in his/her WRKSPLF at all (because you probably have no other AS/400 where you send spooled files to :-), you might want to take this approach: When you write a little CL with OVRMSGF QCPFMSG yourlib/yourmsgf WRKSPLF person You can override the msgf to another one. The commands for the options are stored in messages, in detail CPX3438 0 ?SNDNETSPLF ??TOUSRID() ?*FILE(&1) ?*JOB(&4/&3/&2) ?*SPLNBR(&5) ??DTAFMT() &6 CPX3439 0 ?SNDNETSPLF ??TOUSRID() ?*FILE(&1) ?*JOB(&4/&3/&2) ?*SPLNBR(&5) ?-DTAFMT() &6 So copy the message file QCPFMSG to yourlib and change the command in the messages above to your CPYSPLF or whatever. Be aware that installing another version of OS/400 or PTF's might change the QCPFMSG message file. So you have to repeat these steps then. Most people changing something on their systems like this, write a CL that they can call afterwrds to have their changings re-applied. Mit freundlichen Grüssen / best regards Anton Gombkötö Avenum Technologie GmbH Wien - Mattsee - Stuttgart e-mail Office : mailto:Anton.Gombkoetoe@avenum.com Homepage : http://www.avenum.com Lest das Redbook / read the redbook "Who knew you could do that with RPG?": http://www.redbooks.ibm.com/abstracts/sg245402.html +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.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.