You can activate automatic hardcopy mode using the screen function KCREPR in the KCDF field of the KDCS parameter area. If you use #formats control is performed via global attributes.
You can also activate the hardcopy function using edit profiles (specifications in KCMF/kcfn). To do this, you have to set the operand HCOPY=Y in the KDCDEF statement EDIT when you define the edit profile (see the openUTM manual “Generating Applications”).
In hardcopy mode you have to use MPUT, FPUT or DPUT to send the message to the terminal. This initiates the printout, i.e. if you use MPUT, blanks are entered in KCRN and if you use FPUT/DPUT, the LTERM name of the terminal is used.
The terminal user can also press the key to print the current screen contents to the selected, assigned printer.