CL Command Reference - STRPRTEML

CL Command List > STRPRTEML Reference

Description:

The Start Printer Emulation (STRPRTEML) command starts 3270 printer emulation using a binary synchronous communications (BSC) or Systems Network Architecture (SNA) emulation printer device and a printer device file. The STRPRTEML command is used to print host system (System/370 type) information on an iSeries system. It is used when the user is working on an iSeries system and the information is on a System/370 type system.


Examples:

Example 1: Printing Data to Standard Emulation Printer File

STRPRTEML EMLDEV(HOSTPRT4)

This command starts a batch job by accepting data from the HOSTPRT4 device and prints the data to the standard emulation printer file (QPEMPRTF). The job is named HOSTPRT4 and runs until the job is canceled. Messages are sent to the current work station message queue.



Example 2: Emulating a Printer in the Current Job

STRPRTEML EMLDEV(HOSTPRT5) SBMJOB(*NO)

This command does printer emulation in the current job by accepting data from the HOSTPRT5 device, and writing the data to the standard emulation printer device file (QPEMPRTF). The request is active until it ends through the End Printer Emulation (ENDPRTEML) command, or until the job is canceled.



Example 3: Printing Output Immediately

STRPRTEML EMLCTL(EMLCTL1) TIMOUTEJT(10) DFRPRTOUT(*NO) NUMLIN(96)

This command starts a batch job by accepting data from the device and printing the data in printer file QPEMPRTF. If a timeout of 10 minutes occurs, printer emulation forces out the emulation output. The output prints immediately; the maximum number of lines per page is 96.