Associated printer function

The associated printer function allows a printer emulator to specify an active LU terminal name during connection negotiation. Telnet understands this special request and knows to assign a printer LU name that is associated with the requested terminal LU name. You establish the association by linking a pool of terminal LUs (LUGROUP or SLUGROUP) with a pool of printer LUs (PRTGROUP or SPRTGROUP). The groups are linked with the LUMAP statement. The printer LU group name is linked to the terminal LU group name by adding the PRTGROUP name on the LUMAP statement.

The two LU groups must have the same number of LUs defined so the LUs can be paired. The groups must have the same number of single LU names, the same number of LU ranges, and the same number of LU names in each range. If the groups do not have the same number of LUs defined, error messages will be produced during profile processing.

After the groups are linked, Telnet assigns the nth printer LU to a printer connection that requests association with the nth terminal LU. For example, a CICS® table might specify that if terminal LU1 is requesting printer function, the output should be routed to printer PRT1. Within CICS, LU1 and PRT1 are associated with each other. Use the following statements to set up printer association.

LUGROUP  LUGCICS   LU1..LU9           ENDLUGROUP 
PRTGROUP PRTCICS   PRT1..PRT9         ENDPRTGROUP
IPGROUP  IPGRP9    255.0.0.0:9.0.0.0  ENDIPGROUP 
LUMAP  LUGCICS  IPGRP9  GENERIC  PRTCICS         

To use shared groups, change the first two lines to indicate that the groups are shared:

SLUGROUP  LUGCICS   LU1..LU9           ENDSLUGROUP
SPRTGROUP PRTCICS   PRT1..PRT9         ENDSPRTGROUP
Rule: If you are using sysplex distributor to distribute connections across Telnet servers with associated printers, regardless of whether the LUs are in local groups or shared groups, you must use timed client affinity to ensure that the clients connect to the same Telnet server.

If the terminal connection matches a DEFAULTAPPL or LUMAP-DEFAPPL mapping statement, Telnet immediately initiates a session request for the specified application. If the printer connection matches a PRTDEFAULTAPPL mapping statement, Telnet immediately initiates a session request for the specified application. Building on the previous example, use the following statements to set CICS as the default application for both the terminal and printer connections:

LUMAP LUGCICS IPGRP9 GENERIC DEFAPPL CICS PRTCICS
PRTDEFAULTAPPL CICS

Neither the LU group nor the printer group can be an LU exit group. If either is an LU exit, the mapping statement will be rejected.