NAF - Printer - Function 31.4

One or more physical printers must be defined to NATSPOOL to indicate where reports are to be routed.

Besides general information, a physical printer describes technical data required to establish a connection. This information depends on the operating system: CICS or IMS TM.

This document covers the following topics:


Invoking Physical Printer

When you invoke this function, the Printer window appears:

Time 15:02:17        *** Natural Spool Administration ***      Date 2022-04-06
User SAG                              M e n u                  File 7/411 
                                       +---------- Printer 7/411 ---------------+
        Administration                 !                                        !
                                       !  Enter name of                         !
        10 Reports / Queues            !                                        !
        11 Devices                     !       Printer                          !
        12 Abstracts                   !                                        !
        13 Applications                !  or                                    !
        14 Change Spool File           !                                        !
                                       !      *    for Selection                !
        Maintenance                    !                                        !
                                       !      ?    for Help                     !
        30 Spool File Properties       !                                        !
        31 Objects                     !      .    for End                      !
        32 Mass Update                 !                                        !
        33 Hardcopy Allocations        !      -------------------------         !
        34 Transfer Objects            !      / ________ /                      !
                                       !                                        !
                                       +----------------------------------------+
  Enter values.
  Command ===>
  Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
        Help  Menu  Exit  User  Logic Alloc Print Heade Appli       NTCC  Canc

In this window, you can specify the name of an existing physical printer, select a physical printer from a list of printers available or add a new physical printer to the spool file.

Selecting a Physical Printer from a List

To select a physical printer from a list, enter one of the following:

  • a partly-qualified name (e.g. D* to list all physical printers starting alphabetically from D),

  • an asterisk (*) to list all physical printers in the NATSPOOL system.

A list of physical printers is then shown in a window.

Time 15:23:06        *** Natural Spool Administration ***      Date 2022-04-06  
User SAG                            M e n u                    File 7/411       
                                      +-------------Select with D*-------------+
       Administration                 !  New start value ......... _________   !
                                      !  -----------------------------------   !
       10 Reports / Queues            !  Fl Cm  Name        Fl Cm  Name        !
       11 Devices                     !  -- --  ---------   -- --  ---------   !
       12 Abstracts                   !      _  DAEPRTCA        _  DAEPRT10    !
       13 Applications                !   S  _  DAEPRT12        _  DAEPRT13    !
       14 Change Spool File           !      _  DAEPTR10        _  DAPERT13    !
                                      !      _  DEAPRTCA     S  _  DR1171      !
       Maintenance                    !   S  _  DR1490          _  HCTEST      !
                                      !      _  HHIPID          _  HUGO        !
       30 Spool File Properties       !      _  MK1             _  MK10        !
       31 Objects                     !      _  MK11            _  MK12        !
       32 Mass Update                 !      _  MK13            _  MK2         !
       33 Hardcopy Allocations        !      _  MK3             _  MK4         !
       34 Transfer Objects            !      _  MK5             _  MK6         !
                                      !      _  MK7             _  MK8         !
                                      +----------------------------------------+
 Mark on selection list.                                                        
 Command ===>                                                                   
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help  Menu  Exit                     --   +                       Canc   

The physical printer which was used for the initialization of the current Natural session is highlighted in the window.

The Fl (flag) column indicates the following:

Flag Description
P Protected by administrator(s).
S Physical printer is defined for usage by another operating/TP system.

In the Cm column, you can enter one of the following codes:

Code Description
C Copy physical printer.
D Delete physical printer.
R Rename physical printer.
. Exit function.
X or any other character Display physical printer for modification or deletion, see below.

Maintaining a Physical Printer

If the specified physical printer exists, it is displayed. You can modify the form feed parameters or delete the whole physical printer.

Note:
If you specify a name that does not yet exist, you can add a new physical printer. In this case, the Delete option is not provided in the window.

Time 10:29:04        *** Natural Spool Administration ***      Date 2022-04-06 
User SAG                            M e n u                    File 7/411      
   +-------------------------------- Printer --------------------------------+ +
   !  Modify                 DAEPRT10               Delete (Y/N)         N   ! !
   ! ---------------------------------------------------------------------   ! !
   ! Owner ........... N        Private printer N    Cluster ....   --       ! !
   ! ---------------------------------------------------------------------   ! !
   ! Standard profiles N                             Opsys/Tpsys  CICS____   ! !
   ! Statistics ...... N                                                     ! !
   !                                                                         ! +
   ! Check for form .. N    Initial form ________ / _  FF control B          ! !
   ! FF sequence ..... 0C00 LF sequence  1500          Sever exit ________   ! !
   !                                                                         ! !
   ! NTCC type  ...... ________                                              ! !
   ! ---------------------------------------------------------------------   ! !
   ! CICS System ID .. ____                                                  ! +
   ! ---------------------------------------------------------------------   ! !
   ! Notes                                                                   ! !
   !  ________________________________________________________________       ! !
   +-------------------------------------------------------------------------+ +
 Enter values for the printer.                                                  
 Command ===>                                                                   
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help  Menu  Exit  User  Logic Alloc Print Heade Appli       NTCC  Canc   

Note:
The layout of the window above changes depending on the operating system specified.

The physical printer name must correspond to one of the following, according to the operating system used:

  • the CICS Terminal ID, as specified in the CICS Terminal Control Table TCT; or

  • it must be an IMS TM LTERM name.

You can specify the following for all operating systems:

  • Whether standard profiles are to be used (Y/N). When you add a physical printer, a logical printer and Destination/Form are automatically created. The names of the logical printer and destination correspond to the name of the physical printer. As a form name, A is provided. If you specify N, these objects are deleted.

  • The operating system or TP monitor for which you define the printer. You can specify CICS or IMS TM.

  • Whether you require statistics (Y/N). If you specify Y, the number of pages, lines and reports for this allocation are collected and can be maintained by using Function 20. When Y is specified, an additional field appears (Add/modify time values). If you specify Y for this additional field and press Enter, the Time Window appears in which you can restrict this function to a user-defined time range.

  • Whether the spool server is to check which form (Destination/Form) was printed on this physical device before (Y/N). If the form differs, printout is not started and a message is sent to the console.

  • The initial form to be used if Check for form is set to Y. If you do not specify an initial form and this flag is set to Y, the first printout will be started and the Destination/Form of this report will then be used.

  • When a form feed is to be performed. This information is only evaluated at print time (not when the report is stored on the spool file). Enter one of the following values:

    Value Description
    A Form feed at beginning and end.
    B Form feed at beginning only.
    E Form feed at end only.
    F Form feed at end only. (Leading form feed is ignored.)
    I No form feed at beginning and end. (Leading form feed is ignored.)
    N No form feed at beginning and end.
    T Transparent (no modifications).
  • Control sequences for the form feed and line feed.

  • The type of printer if you work with printer-specific NTCC tables (see Function 31.8 and the DEFINE PRINTER statement).

  • The name of the subprogram that takes control in the spool server over each block sent to the printer. If you do not specify a name, control is passed to the user exit USPSER01. If you do not want a user exit to take control, enter *DUMMY.

  • A description of the physical printer can be added in the Notes field.

All other fields in the screen depend on the operating system currently:

Maintaining a Physical Printer under CICS

Time 13:53:29        *** Natural Spool Administration ***      Date 2022-04-06 
User SAG                            M e n u                    File 7/411      
   +-------------------------------- Printer --------------------------------+ +
   !  Modify                 DAEPRT10               Delete (Y/N)         N   ! !
   ! ---------------------------------------------------------------------   ! !
   ! Owner ........... N        Private printer N    Cluster ....   --       ! !
   ! ---------------------------------------------------------------------   ! !
   ! Standard profiles N                             Opsys/Tpsys  CICS____   ! !
   ! Statistics ...... N                                                     ! !
   !                                                                         ! +
   ! Check for form .. N    Initial form ________ / _  FF control B          ! !
   ! FF sequence ..... 0C00 LF sequence  1500          Sever exit ________   ! !
   !                                                                         ! !
   ! NTCC type  ...... ________                                              ! !
   ! ---------------------------------------------------------------------   ! !
   ! CICS System ID .. ____                                                  ! +
   ! ---------------------------------------------------------------------   ! !
   ! Notes                                                                   ! !
   !  ________________________________________________________________       ! !
   +-------------------------------------------------------------------------+ +
 Enter values for the printer.                                                  
 Command ===>                                                                   
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help  Menu  Exit  User  Logic Alloc Print Heade Appli       NTCC  Canc 

A specific CICS system ID can be defined for each printer. If you do not specify a value, the value from the spool file options is used (see Function 30.5).

Maintaining a Physical Printer under IMS TM

Time 14:05:10        *** Natural Spool Administration ***      Date 2022-04-06 
User SAG                            M e n u                    File 7/411      
   +-------------------------------- Printer --------------------------------+ +
   !  Modify                 IMSPRI                 Delete (Y/N)         N   ! !
   ! ---------------------------------------------------------------------   ! !
   ! Owner ........... N        Private printer N    Cluster ....   --       ! !
   ! ---------------------------------------------------------------------   ! !
   ! Standard profiles N                             Opsys/Tpsys  IMS TM__   ! !
   ! Statistics ...... N                                                     ! !
   !                                                                         ! +
   ! Check for form .. N    Initial form ________ / _ FF control  B          ! !
   ! FF sequence ..... 0C00 LF sequence  1500         Server exit ________   ! !
   ! ---------------------------------------------------------------------   ! !
   ! Printer Type .... ________  SCS printer (Y/N) Y  Buffer size 1024       ! !
   ! ---------------------------------------------------------------------   ! !
   ! IMS BMP Transaction ID .. ________                                      ! +
   ! IMS BMP JCL Member ...... ________                                      ! !
   ! Notes                                                                   ! !
   !  ________________________________________________________________       ! !
   +-------------------------------------------------------------------------+ +
 Enter values for the printer.                                                  
 Command ===>                                                                   
 Enter-PF1---PF2---PF3---PF4---PF5---PF6---PF7---PF8---PF9---PF10--PF11--PF12---
       Help  Menu  Exit  User  Logic Alloc Print Heade Appli       NTCC  Canc

Report data are processed differently. Therefore, you must specify SCS printers by entering Y (yes) or N (no) in the field SCS Printer. In addition, in the Buffer Size field, enter the size of the buffer used by the blocks transferred to the physical printer. The buffer size is defined in bytes and must be in the range of 256 and 4048.

BMP name and JCL member can be defined for each printer. If you do not specify any values, the values from the spool file options are used (see Function 30.5).