i5/OS to i5/OS for remote system printing

The following diagram illustrates i5/OS-to-i5/OS remote system printing with SNADS. The values (or names) in the diagram are used in this example.

i5/OS-to-i5/OS remote system printing with SNADS

Preparation work must be done on both the source system and target system for the remote system printing to work. The following table provides a list of things that must be present or created before remote system printing can be used.

Table 3. Source system and target system preparation for remote system printing
Source system Target system
Line, controller, and device descriptions created

Additional information for these configuration descriptions can be obtained in Communications Configuration Link to PDF.

Line, controller, and device descriptions created

Additional information for these configuration descriptions can be obtained in Communications Configuration Link to PDF.

Identify the user profiles to be used for remote system printing.

This information is needed if you want a corresponding user profile on the target system to own the sent spooled files. If you do not care who owns the spooled files, they can be sent to the target system and spooled to the QNETSPLF user profile.

Depending on where (to a user ID or output queue) you want the spooled files sent, you need to create a matching user profile or a specific output queue. Use the CRTUSRPRF or CRTOUTQ commands.
Set up the SNADS network.
  • Create distribution queues and routing entries using the Configure Distribution Services (CFGDSTSRV) command.
    • Create a distribution queue.
    • Create a routing entry and associate the target system name (SYSNMDLC) with the distribution queue.
  • Add users to the system directory. Use the Add Directory Entry (ADDDIRE) command.
    • Add a directory entry for the QNETSPLF user profile. (This entry is used to send spooled files to the remote system.)
      User ID
      This must be QNETSPLF.
      Address
      This is the value specified on the RMTSYS parameter (SYSNMDLC).
      User profile
      This must be *NONE.
      System name
      This is the value specified on the RMTSYS parameter (SYSNMDLC).
      System group
      Not used in this example.
    • Add a directory entry for the QNETSPLF user profile. (This entry is the user ID used by SNADS on the source system.)
      User ID
      This must be QNETSPLF.
      Address
      This is the name of the source system (SYSNMD5T).
      User profile
      This must be QNETSPLF.
      System name
      This is the name of the source system (*LCL).
      System group
      Not used in this example.
Set up the SNADS network.
  • Create distribution queues and routing entries using the Configure Distribution Services (CFGDSTSRV) command.
    • Create a distribution queue.
    • Create a routing entry; associate the name of the distribution queue and the network ID of the target system (SYSNMD5T).
  • Add users to the system directory. Use the Add Directory Entry (ADDDIRE) command.
    • Add a directory entry for QNETSPLF. (This entry is used to receive spooled files from the source system.)
      User ID
      This value must be QNETSPLF.
      Address
      This is the value specified on the RMTSYS parameter (SYSNMDLC).
      User profile
      This must be QNETSPLF.
      System name
      This must be *LCL.
      System group
      Not used in this example.
    • Add another directory entry for user profile QNETSPLF. (This entry is used to send messages back to the source system).
      User ID
      This must be QNETSPLF.
      Address
      This is the name of the source system (SYSNMD5T)
      User profile
      This value must be *NONE.
      System name
      This is the name of the source system (SYSNMD5T)
      System group
      Not used in this example.
Create a remote output queue for remote system printing.

Use the Create Output Queue (CRTOUTQ) command.

Create an output queue to receive the spooled files using the value on the RMTPRTQ parameter (OUTQRMT).

Source system activity - creating the remote output queue

The result of using this example would be spooled output files sent to output queue OUTQRMT on the target system (SYSNMDLC).

Type CRTOUTQ and press F4 (Prompt). The following display appears. Type the values shown and press the Enter key. The remote output queue RMTOUTQ is created. The other parameter values are needed to ensure connection and delivery to the designated system.

                       Create Output Queue (CRTOUTQ)
 
Type choices, press Enter.
 
Output queue . . . . . . . . . .   RMTOUTQ    Name
  Library  . . . . . . . . . . .     MYLIB    Name, *CURLIB
Maximum spooled file size:        
  Number of pages  . . . . . . .     *NONE    Number, *NONE
  Starting time  . . . . . . . .              Time
  Ending time  . . . . . . . . .              Time
               + for more values  
Order of files on queue  . . . .   *FIFO      *FIFO, *JOBNBR
Remote system  . . . . . . . . .   SYSNMDLC
Remote printer queue   . . . . .   OUTQRMT
Queue for writer messages  . . .   QSYSOPR    Name, QSYSOPR
  Library  . . . . . . . . . . .     *LIBL      Name, *LIBL, *CURLIB
Connection type  . . . . . . . .   *SNA       *SNA, *IP
Destination type . . . . . . . .   *OS400     *OS400, *OS400V2, *PSF2...
Text 'description' . . . . . . .   i5/OS to i5/OS
           
         
                                                                          Bottom
F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel
F13=How to use this display        F24=More keys
 

To begin sending spooled output files from the RMTOUTQ remote output queue, run the Start Remote Writer (STRRMTWTR) command. Type STRRMTWTR and press F4 (Prompt).

The following display appears. Type the values for the parameters displayed and press the Enter key. Spooled output files are then sent to the OUTQRMT on the target system (SYSNMDLC).

          Start Remote Writer (STRRMTWTR)
 
Type choices, press Enter.
 
Output queue . . . . . . . . . .   RMTOUTQ    Name, *ALL
  Library  . . . . . . . . . . .     stumpf   Name, *LIBL, *CURLIB
Queue for writer messages  . . .   *OUTQ      Name, *OUTQ, *REQUESTER
  Library  . . . . . . . . . . .              Name, *LIBL, *CURLIB
Form type options:
  Form type  . . . . . . . . . .   *ALL       Form type, *ALL, *STD, *FORMS
  Message option . . . . . . . .   *NOMSG     *NOMSG, *INQMSG, *MSG...
 
 
 
 
 
 
 
 
 
                                                                        Bottom
F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel
F13=How to use this display        F24=More keys
 

Target system activity - printing spooled output files from the source system

The spooled output files were sent to the OUTQRMT output queue on the target system. To begin printing the spooled output files, start a printer writer to the OUTQRMT output queue. Type STRPRTWTR and press F4 (Prompt).

Type the name of the printer (CHEROKEE2) you want to use and the name of the output queue with the received spooled output files (OUTQRMT). Press the Enter key and spooled output files will begin to print on the printer named CHEROKEE2.

                 Start Printer Writer (STRPRTWTR)
 
Type choices, press Enter.
 
Printer  . . . . . . . . . . . .   cherokee2  Name, *ALL, *SYSVAL
Output queue . . . . . . . . . .   OUTQRMT    Name, *DEV
  Library  . . . . . . . . . . .     stumpf   Name, *LIBL, *CURLIB
Queue for writer messages  . . .   *DEVD      Name, *DEVD, *REQUESTER
  Library  . . . . . . . . . . .              Name, *LIBL, *CURLIB
Form type options:
  Form type  . . . . . . . . . .   *ALL       Form type, *ALL, *STD, *FORMS
  Message option . . . . . . . .   *INQMSG    *INQMSG, *MSG, *NOMSG...
File separators  . . . . . . . .   *FILE      0-9, *FILE
Drawer for separators  . . . . .   *DEVD      1-255, *DEVD, *FILE
 
 
 
 
 
 
                                                                          Bottom
F3=Exit   F4=Prompt   F5=Refresh   F10=Additional parameters   F12=Cancel
F13=How to use this display        F24=More keys
 

Multiple printer writers can be started to same output queue. This allows the spooled output files from a particular output queue to be printed on more than one printer.

To see the number of writers started to the OUTQRMT output queue, run the WRKOUTQ *ALL command. The Work with All output queues screen appears. Type option 9 next to the OUTQRMT output queue and press the Enter key. The Work with All Writers display appears. If the output queue has more than one writer started to it, the writers are listed and they both are associated with the same output queue (OUTQRMT).

           Work with All output queues
 
Type options, press Enter.
2=Change   3=Hold     4=Delete   5=Work with   6=Release   8=Description
9=Work with Writers   14=Clear
 
Opt     Queue          Library         Files      Writer         Status
        SCCOUTQ        SCCLARK          156                      RLS
        T93            SCCLARK            0                      RLS
        AFP            SKS               23                      RLS
        AFP2           SKS                0                      RLS
        SKS2           SKS                0                      RLS
        DEFERQ         STANGLER           5                      HLD
        STANGLER       STANGLER          53                      RLS
        ANGELIKA       STUMPF             0                      RLS
 9      OUTQRMT        STUMPF             2     *CHEROKEE2       RLS
        RMTOUTQ1       STUMPF             0                      RLS
        TAAOUTQ        TAATOOL            0                      RLS
        TIEMENS        TIEMENS            0                      RLS
                                                                        More...
Command
===>  
F3=Exit   F4=Prompt   F5=Refresh   F12=Cancel   F24=More keys
 

            Work with All Writers
 
Type options, press Enter.
2=Change   3=Hold   4=End   5=Work with   6=Release   7=Display messages
8=Work with output queue
 
Opt  Writer      Type  Device      Queue       Library     Status  Form Type
     CHEROKEE2   PRT   CHEROKEE2   OUTQRMT     STUMPF       STR    *ALL
     CHIEF       PRT   CHIEF       OUTQRMT     STUMPF       STR    *ALL
 
 
 
 
 
 
 
 
 
                                                                         Bottom
Parameters for options 2, 3, 4, 6 or command
===>  
F3=Exit   F4=Prompt   F12=Cancel   F22=Start printer writer   F24=More keys
 
 

You can list the names of writers started to the OUTQRMT output queue by typing WRKOUTQ OUTQRMT and pressing F4 (Prompt). The Work with Output Queue display appears. Press F20 (Writers) and the Work with All Writers display appears with a list of all writers that are started to the OUTQRMT output queue. This sequence is shown in the following two displays.

                      Work with Output Queue
 
Queue:   OUTQRMT        Library:   STUMPF         Status:   RLS/WTR
 
Type options, press Enter.
1=Send   2=Change   3=Hold   4=Delete   5=Display   6=Release   7=Messages
8=Attributes        9=Work with printing status
 
Opt  File        User        User Data   Sts   Pages   Copies  Form Type   Pty
    DMB18R2     XZZ0136     *BEFORE     HLD       4       1       ENTN         5
    QPRINT      STUMPF                  SAV       2       1       *STD         5
 
 
 
 
 
 
 
                                                                          Bottom
Parameters for options 1, 2, 3 or command
===>
F3=Exit   F11=View 2   F12=Cancel   F20=Writers   F22=Printers
F24=More keys
 
                       Work with All Writers
 
Type options, press Enter.
2=Change   3=Hold   4=End   5=Work with   6=Release   7=Display messages
8=Work with output queue
 
Opt  Writer      Type  Device      Queue       Library     Status  Form Type
     CHEROKEE2   PRT   CHEROKEE2   OUTQRMT     STUMPF       STR    *ALL
     CHIEF       PRT   CHIEF       OUTQRMT     STUMPF       STR    *ALL
 
 
 
 
 
 
 
 
 
                                                                          Bottom
Parameters for options 2, 3, 4, 6 or command
===>  
F3=Exit   F4=Prompt   F12=Cancel   F22=Start printer writer   F24=More keys