Use this file-level keyword to specify that after the printer file is opened (the first time the user presses the Print key), it is to remain open until the associated display file is closed.
If you do not specify OPENPRT (and the PRINT keyword is specified), the printer file is opened and closed each time a display image is printed.
The printer file should be spooled if more than one job uses the same printer file and device. While the printer file is open in the nonspooled mode, the associated printer is allocated to the program or process using this function.
This keyword has no parameters.
This keyword is valid only if you have specified a file-level PRINT keyword with a printer file parameter. It is not valid with record-level PRINT keywords.
The OPENPRT keyword has no effect unless the PRINT file is specified on the PRINT keyword.
Option indicators are not valid for this keyword.
The following example shows how to specify the OPENPRT keyword.
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00031A PRINT(PRTFILE) 00032A OPENPRT A