|
I have a RPG program which prints two reports. Is there any way i can get the attributes of the spool files( Spool file name, job name, user name and job number ) automatically inside my program itself once the reports are printed.?. FOP540A O F 132 OA PRINTER KPRTCTLPRINTA UC F KINFDS INV01 FOP540B O F 132 OB PRINTER KPRTCTLPRINTB UC F KINFDS INV02 IINV01 DS I 103 112 SPNAM1 I 113 122 SPLIB1 I B 123 1240SPNBR1 I 129 138 FMEMB1 I* IINV02 DS I 103 112 SPNAM2 I 113 122 SPLIB2 I B 123 1240SPNBR2 I 129 138 FMEMB2 We do something similar for faxing, Using the Information Data Structure Write the information to a file with at least these fields. Others can be added for your own purposes. Spool Name K FTPFIL A 10 Spool Number K FTPFNM A 4 Job Name K FTJOB A 10 Job User K FTUSER A 10 Job Number K FTJBNM A 6 File Member FTFMEM A 10 The spool the is written to an outq with a dataq attached, it is through the CL that watches the dataq that perhaps you do what you need to do for your web. +--- | 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-2025 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.