Please enable JavaScript to view this site.
From v7.0.00 - This is a Standard Exit program which allows you to print a file on the IFS (or QNTC) to an Output Queue on the IBM i.
Notes:
•If there is an error printing the file then *ERROR is returned in PARM1 and a message is written to the joblog.
•If the Output Queue details you supply are not valid the file will be printed to Output Queue QPRINT in library CPPD.
•If your file resides in QNTC i.e. outside the IFS, then you will need to specify a User Id in PARM6 that has been configured to access QNTC. *ERROR will be returned in PARM1 if you specify an invalid User Id and a message is written to the joblog.
•This uses the “printer device type” *USERASCII so there is no option to print in duplex or use drawer selection etc. The only way to do this is to set the printer to print duplex, or to a specific drawer, by default. If you also want to print simplex documents to the same printer you’ll have to output a blank page in between each page to emulate it.
Parameter |
In |
Len |
Description |
PARM1 |
File path of the file to print |
132 |
The file path you wish to print e.g. /test/I013378.PDF |
PARM2 |
Output Queue Name |
10 |
A valid Output Queue Name. Default QPRINT |
PARM3 |
Output Queue Library |
10 |
A valid Output Queue Library. Default CPPD |
PARM4 |
User Data |
10 |
Optional - Default COBPRTSTMR |
PARM5 |
|
||
PARM6 |
User Id |
10 |
Optional IBM i User Id with access to QNTC |