CL Command Reference - ENDPRTEML

CL Command List > ENDPRTEML Reference

Description:

The End Printer Emulation (ENDPRTEML) command ends printer emulation without ending the job. If there is another request in the job, that request is then processed.

This command closes the file to the host system, then writes the last data received from the host system out to the spooled file or printer by closing the printer file.

In some cases, the request does not take effect immediately. The request is delayed while any of the following conditions exist in the printer emulation request:

. Printing a block sent from the host system.

. Waiting for a printer error to be cleared (for example, a paper jam).

. Waiting for a reply to a PA1 or PA2 inquiry message.

. Waiting for error recovery to be done to the host system or printer device.

. The job has been held by using the HLDJOB command. When the condition is cleared, the End Printer Emulation request takes effect, and the printer emulation request ends.


Examples:

ENDPRTEML EMLDEV(HOSTPRT3)

This command ends the printer emulation request that is using the device HOSTPRT3.