External Printing

Administrators can print on external printers, using the External Print interface, JES Data Set interface, and Dynamic Program Call interface, as follows:
view
Administrators can print on external printers, using the External Print interface, JES Data Set interface, and Dynamic Program Call interface, as follows:
External Print Interface
The External Print interface is a direct interface between CA View and any printing product that might be used to reprint a SYSOUT or report. CA View communicates directly with these external printing products using online specifications and parameters set during initialization.
To simplify specification at reprint time, you can define an EXTERNAL printing device with the online DEFine DEVice command. Your system administrator can use the online DEFine DEVice command to assign a printer alias name (such as PRINTR1) to simplify the specification of an external printer.
CA View uses the JES data set interface and the Dynamic Program Call Interface to pass the External Print Record (XPR) to the external printing product.
JES Data Set Interface
To select a SYSOUT group for printing by the external printing product, use the following format to specify a destination (DEST field of a Print Attribute panel).
>printer - id.attributes
where:
  • >
    Signifies that the SYSOUT group is to be printed by an external printing product
  • printer
    -id
    The 1- to 3-character external print identifier that matches the value set for the corresponding EXTPRT
    initialization parameter
  • attributes
    Specifies the replacement values for any of the parameters that were specified as an asterisk in the corresponding EXTPRT
    n
     initialization parameter
    The values must be specified in the same order as the sub parameters (that is, class, destination, form name, and writer name). If more than one value is supplied, values must be separated by periods.
Example
Assume the following:
  • You want to print to an external device using the JES Data Set Interface
  • The printer ID is VPS
  • The class is V
  • The destination is LOCAL
  • You want the writer name to be supplied online when the print request is made.
Your system administrator can define the following initialization parameter:
EXTPRT1=VPS/JESDS/V/LOCAL//*
Notice the use of the asterisk in the EXTPRT parameter in the writer position. The asterisk indicates that the writer name is to be supplied online at the time of the print request.
For the online print request, specify the following destination:
DEST ===> >VPS.RMT5
A SYSOUT data set is dynamically created to contain the XPR record. The attributes for the data set correspond to this JCL statement:
//ddname DD SYSOUT=(V,RMT5),DEST=LOCAL
Dynamic Program Call
With the Dynamic Program Call interface, CA View dynamically loads and calls a program to handle the print request. The following information is passed to the program:
  • The external print record (XPR)
  • The parameter data specified in the EXTPRT
    n
     initialization parameter
  • The destination specified by the user on the print request.
To select a SYSOUT group for printing by the external printing product, specify a destination (DEST field of a Print Attribute panel) using the following format:
>printer - id.parameter - data
where:
  • >
    Signifies that the SYSOUT group is to be printed by an external printing product
  • printer
     - id
    The 1- to 3-character external print identifier that matches the value you set for the corresponding EXTPRT
    n
     initialization parameter
  • parameter
     - data
    The additional parameter data to be passed to the interface program
Example
Assume the following:
  • You want to print to an external device using the Dynamic Program Call Interface
  • The printer ID is ANA
  • The program to be called is ANAEP
  • The characters NOBANNER are to be passed to the program.
Your system administrator might define the following initialization parameter:
EXTPRT2=ANA/PGM/ANAEP/NOBANNER
For the online print request by the user, specify the following destination:
DEST ===> >ANA.INDEX
CA View dynamically loads and calls the program ANAEP. The parameter list to the program contains the addresses and lengths of the following:
  • The character string NOBANNER
  • The character string INDEX
  • The XPR record