Question & Answer
I need to know how to configure local printers connected through the CICS Transaction Gateway to use TXSeries applications.
It is becoming more prevalent to have locally connected printers (printers that are addressable from a workstation or desktop) being part of an implementation for new or updated application. For TXSeries the only way to use local printers is with the use of the CICS Transaction Gateway (CTG) software.
The printer to be used could be locally attached with a cable, network addressable, a Windows Domain resource, or connectable from a server which is common in the UNIX environments. As long as the workstation or desktop has a device defined for the printer this solution will work. A picture of a basic configuration could look like this.
The cicsprnt command from CTG is used to establish a printer.
cicsprnt -n=PRINTER1 -r=REGIONA -f=c:\print\file\location\printer1file.txt -q -j
or to a printer directly: cicsprnt -n=PRINTER1 -r=REGIONA -p=c:\application\printerscript.bat -t
In the script file are the specific commands for the local printer to print the data sent.
Be aware that TXSeries cannot sign on a printer or run a transaction on a printer that takes keyboard interaction. If an initial transaction is specified in the Server definition in the CTG, and it requires keyboard interaction like CESN, the -t option must be used on the cicsprnt command to ignore the initial transaction. Without the ability to sign on a user on the printer terminal the default user id for the region is used to run the transaction on the printer terminal. Security is handled through the use of the RSLkeys and TSLkeys on terminal, transaction and program definitions.
A printer terminal definition is needed in the region for the netname requested with the -n switch on the cicsprnt command. The hard coded terminal entries are usually used for printers. The entry resides in the WD.stanza. Remember to cold start the region after creating one. In the sample below notice the setting of the parameter IsPrinter=yes.
18 November 2014