Remote Writer Page Range Support Program infos

BoTTom |
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


|
command to change the program to adopt its owners authority and change
the owner of the program to be a user profile which has sufficient
authority, such as QSPL.
 
USING THE TOOL TO PRINT AND SEND PAGE RANGES
--------------------------------------------
 
Specify the name of the exit program (TSPRWPR) and library for
the User Data Transform parameter of the LPR or SNDTCPSPLF commands.
For Example:
 
 SNDTCPSPLF RMTSYS(TCPPRINT) PRTQ(PRT01) FILE(QSYSPRT) DESTTYP(*OTHER)
            TRANSFORM(*NO) USRDTATFM(mylib/TSPRWPR) MFRTYPMDL(*HP4)
 
For remote output queues with a connection type of *IP, specify
the name (TSPRWPR) and library for the User Data Transform parameter
of the CRTOUTQ or CHGOUTQ commands. For Example:
 
 CRTOUTQ OUTQ(mylib/RMTOUTQ) RMTSYS(*INTNETADR) RMTPRTQ(PRT01)
         CNNTYPE(*IP) DESTTYPE(*OTHER) TRANSFORM(*NO)
         USRDTATFM(mylib/TSPRWPR) MFRTYPMDL(*HP4)
         INTNETADR('9.5.50.77')
 
 




©AF400