Where allowed to run: All environments (*ALL) Threadsafe: No |
Parameters Examples Error messages |
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.
More information is in the 3270 Device Emulation Support book, SC41-5408.
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
EMLCTL | Emulation controller, or | Name | Optional, Positional 1 |
EMLDEV | Emulation device, or | Name | Optional, Positional 2 |
EMLLOC | Emulation location | Communications name | Optional, Positional 3 |
PRTDEV | Print device | Name | Optional |
JOB | Job name | Name, *EMLDEV | Optional |
ENDBKTEJT | End Bracket eject | *NO, *YES | Optional |
PRTFILE | Printer file | Qualified object name | Optional |
Qualifier 1: Printer file | Name, QPEMPRTF | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TIMOUTEJT | Timeout wait eject | Single values: *NONE, *IMMED Other values: Element list |
Optional |
Element 1: Minutes | 0-99 | ||
Element 2: Seconds | 0-59, 0 | ||
DFRPRTOUT | Defer printing spool output | *PRTFILE, *YES, *NO | Optional |
SPOOL | Spool output | *PRTFILE, *YES, *NO | Optional |
OPNPRTF | Open printer file | *IMMED, *RCVDTA | Optional |
NUMCOL | Print positions per line | 1-378, *PRTFILE | Optional |
NUMLIN | Lines per page | 1-255, *PRTFILE | Optional |
LPI | Lines per inch | *PRTFILE, 6, 3, 4, 7.5, 7,5, 8, 9 | Optional |
MSGQ | Message queue | Single values: *DSPDEV, *NONE Other values: Qualified object name |
Optional |
Qualifier 1: Message queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
CHRSET | Language character set | *SYSVAL, AGB, AGE, AGI, AGM, ALI, ALM, BGB, BGE, BLI, BLM, BRB, BRE, CAB, CAE, CAI, CAM, CLB, CLE, CYB, CSB, CSE, DMB, DMI, DME, DMM, ESB, FAB, FAI, FAE, FAM, FNB, FNI, FQB, FQI, FNE, FNM, ICE, GKB, GNB, GNE, HIB, HNB, HNE, ICB, ICI, ICM, INB, INI, IRB, ITB, ITE, ITI, ITM, JEB, JEI, JKB, JPB, JPE, JUB, KAB, KOB, LTB, LAE, LVB, MKB, MKE, NCB, NCE, NEB, NEI, NEE, NEM, NWB, NWE, NWI, NWM, PKE, PLB, PLE, PRB, PRI, PRE, PRM, RCB, RMB, RME, ROB, ROE, RUB, RUE, SFI, SFM, SGM, SGI, SKB, SKE, SPB, SPE, SPI, SPM, SQB, SQE, SSB, SSI, SWB, SWI, SSE, SSM, SWE, SWM, TAB, THB, THE, TKB, TKE, TRB, TRE, UAE, UKB, UKI, USB, USI, UKE, UKM, USE, USM, VNE, YGI, YGM, *TRNTBL | Optional |
SBMJOB | Submit job | *YES, *NO | Optional |
JOBD | Job description | Qualified object name | Optional |
Qualifier 1: Job description | Name, QBATCH | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
TRNTBLOUT | Outgoing translation table | Single values: *CHRSET Other values: Qualified object name |
Optional |
Qualifier 1: Outgoing translation table | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
JOBQ | Job queue | Single values: *JOBD Other values: Qualified object name |
Optional |
Qualifier 1: Job queue | Name | ||
Qualifier 2: Library | Name, *LIBL, *CURLIB | ||
ENDCOND | End emulation conditions | Single values: *NONE Other values (up to 3 repetitions): *DACTLU, *ENDBKT, *UNBIND |
Optional |
FORMFEED | Acknowledge form feed | *YES, *NO | Optional |
EMLCFGE | Configuration entry | Name, QEMDFTCFGE, *NONE | Optional |
Top |
Specifies the name of a BSC controller description or SNA controller description that has attached 3270 printer emulation device descriptions. When this parameter is specified, the printer emulation job uses a 3270 printer emulation device attached to this controller description. The requester must be authorized to the controller and at least one device, and the device must be available.
Either this parameter, the Emulation device (EMLDEV) parameter, or the Emulation location (EMLLOC) parameter is required.
Top |
Specifies the name of a BSC or an SNA printer emulation device (EMLDEV(3284, 3286, 3287, 3288, or 3289)) that is used by the printer emulation job to do a type 3270 printer emulation. The user must be authorized to the device, and the device must be available.
Top |
Specifies the emulation remote location name that describes the location of the 3270 printer emulation devices. This name is defined during device description configuration and refers to the remote location where communication takes place. When this parameter is specified, an available printer emulation device is selected from those referred to by the location. At least one printer emulation device referred to by the location must be available, and the job running emulation must be authorized to use the device.
Either this parameter, the Emulation controller (EMLCTL) parameter, or the Emulation device (EMLDEV) parameter is required.
Top |
Specifies the name of the printer used with this printer device file to print the output. This parameter is ignored if the printer data is spooled. If the output is not spooled and the printer device is being used at the time the job is initiated, the emulation session ends.
Note: If a printer name is not specified, the output is sent to the printer device specified on the Device (DEV) parameter of the Create Printer File (CRTPRTF) command. This printer device can be displayed by using the Display File Description (DSPFD) command.
Top |
Specifies a job name for the printer emulation job. If the EMLDEV parameter is not specified, and a batch job is to be submitted (*YES is specified for the Submit job (SBMJOB) parameter), a job name must be specified. This parameter is ignored when *NO is specified for the SBMJOB parameter.
Top |
Specifies whether SNA printer emulation should force out the emulation output when an SNA End Bracket (EB) is received from the host system. Emulation output is forced out by closing and then reopening the emulation printer file specified in the PRTFILE parameter. When the emulation printer output is ejected, a page eject is performed. The parameter uses the default value of *NO for BSC printer emulation.
Top |
Specifies the printer device file that prints data received from the host system. The printer device file can be spooled or not spooled.
The possible library values are:
Top |
Specifies whether printer emulation forces out the emulation output when a time-out has occurred while waiting for host system data. The emulation output is forced out only if the open printer file contains host system data. The wait interval can be specified in number of minutes or seconds. If a value is specified for both minutes and seconds, then these values will be added together.
Note: When the emulation printer output is ejected, a page eject is also performed.
Top |
Specifies whether spooled output is printed immediately or is delayed. This parameter is ignored when *NO is specified for the Spool output (SPOOL) parameter.
Note: Once the printer starts printing output from 3270 device emulation, spooled output from other jobs sharing the printer does not print until the spooled file that is currently printing is complete.
Top |
Specifies whether the output data for the printer device file is spooled. If *NO is specified on this parameter, output is sent to the printer specified on the Print device (PRTDEV) parameter. If the output is spooled, it is sent to the output queue specified on the Spooled output queue (OUTQ) parameter of the Create Printer File (CRTPRTF) command for the printer file specified on the PRTFILE parameter. The Output Queue value can be displayed by using the Display File Description (DSPFD) command and specifying the printer file name.
Note: If *JOB is specified on the OUTQ parameter, output is sent to the output queue specified on the OUTQ parameter of the job description specified on the JOBD parameter. This value can be displayed by using the Display Job Description (DSPJOBD) command and specifying the job description name.
Top |
Specifies when the printer file is opened during the SNA 3270 printer emulation session. If the printer data is not spooled, then the printer will be allocated to your job when the printer file is opened. If the printer data is spooled, then the spool writer is allocated to your job after the printer file is opened depending on the value of the DFRPRTOUT parameter.
This parameter is not allowed if specified for BSC 3270 printer emulation.
Top |
Specifies the number of columns in a line when creating the printed output.
Top |
Specifies the number of lines per page when creating the printed output.
Top |
Specifies the number of lines per inch when creating the printed output.
Top |
Specifies the message queue to which operational messages for this device are sent.
The possible library values are:
Top |
Specifies the 3-character country or region keyboard language identifier which represents a specific full character identifier (CHRID - comprised of a character set and code page) that is used by the printer being emulated.
Top |
Specifies whether the printer emulation should be done as a separate job or as part of this job.
Top |
Specifies the job description for the job that is being submitted for 3270 printer emulation. This parameter is ignored when *NO is specified for the Submit job (SBMJOB) parameter.
The possible library values are:
Top |
Specifies the outgoing translation table used to translate characters sent from the host system to 3270 Emulation.
The possible library values are:
Top |
Specifies the name of the job queue in which this 3270 printer emulation job is placed. This parameter is ignored when *NO is specified for the Submit job (SBMJOB) parameter.
The possible library values are:
Top |
Specifies additional ways in which the SNA 3270 printer emulation session can end.
This parameter is not allowed if specified for BSC 3270 printer emulation.
Top |
Specifies whether to acknowledge a form-feed instruction located in the first character position of the first print line for a 3270 Information Display System data-stream compatibility (DSC) LU3 printer.
This parameter is ignored for an SNA character string (SCS) LU1 printer.
Top |
Specifies whether a configuration entry is used for this session. Configuration entries indicate 3270 emulation configuration options. Configuration entries are created with the Add Emulation Configuration Entry (ADDEMLCFGE) command.
Top |
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.
Top |
*ESCAPE Messages
Top |