voici un outil de QUSRTOOL (écrit en C), livré tel que.
=======================================================
 
TSPRWPR REMOTE WRITER PAGE RANGE SUPPORT PROGRAM
------- ----------------------------------------
 
BRIEF DESCRIPTION
-----------------
The TSPRWPR exit program allows a user to have only a specific
page range printed or sent using the LPR or SNDTCPSPLF commands.
This page range support is provided only for *SCS or *AFPDS
spooled files which are transformed to ASCII before being sent.
The specific page range to use is extracted from each spooled
file's attributes at the time the file is printed or sent.
This exit program can also be used on remote output queues
which are configured with a connection type of *IP to provide
the same page range function.
 
This exit program also serves the purpose of providing an example
of a Writer Transform Exit, as it is written to the Writer
Transform Exit interface as documented in the AS/400 System
API Reference manual.
 
 
EXAMPLE STRUCTURE
_________________
 
 
+-> LPR, SNDTCPSPLF or Remote Writer
! !
! !
! V
+-- Program TSPRWPR
 
LIMITATIONS
------------
 
The TSPRWPR exit program uses several APIs that access the spooled
files being sent. Because of this, it must have sufficient authority
to the output queue that the spooled file is on, the library that
the output queue is in, and the spooled file itself. See the
System API Reference manual under the QSPOPNSP API for the level
of authority needed. One possible way of insuring this exit program
has authority to process all spooled files is to use the CHGPGM CL
|