|
|
SNA IMF Programmer's Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 3 Intrinsics Used with Standard MPE
I/OPRINT3270 |
|
PRINT3270 produces a hard copy of the internal screen image. The PRINT3270 intrinsic cannot be used during LU.T1 emulation or while in transparent mode.
The PRINT3270 intrinsic is a powerful program testing aid that you can call at any time unless a TRAN3270 or RECV3270 call is outstanding. The PRINT3270 intrinsic sends a copy of your current internal screen image to a spooled output file. An appropriate time to call PRINT3270 is after a RECV3270 call, when the host has modified your internal screen image. The printed output helps you verify exactly what has been changed. The action parameter determines the output of the PRINT3270 intrinsic. The values for the action parameter, and their effects on the output of the PRINT3270 intrinsic, are as follows: action = 0 Opens the output file. Your first call to PRINT3270 must specify action = 0. action = 1 Prints the internal screen image. This format is designed for program testing and shows all attribute character locations as overprinted characters. The hexadecimal values of the first 16 attribute characters (per row) are printed to the right of the internal screen image. Null characters are printed as tildes (~) to distinguish them from blank characters. Tildes may appear as dashes (-) on some printers. Two screen images are printed per page with a border indicating column and row numbers. The cursor is represented by an underline character. The cursor location is written at the bottom of the internal screen image, along with the state of the keyboard (enabled or disabled). action = 2 Prints the internal screen image. This format is a clean print, with attribute and null characters appearing as blank characters. This format resembles the internal screen image as it would appear on a terminal screen. You may wish to use this format to document host transmissions. This format prints only one screen per page with no border and no cursor. action = 3 Prints an initial page that defines all possible hexadecimal values for attribute characters and the meaning of each value. After opening your output file with action = 0, call the PRINT3270 intrinsic again with action = 3. action = 4 Closes the output file.
Your first call to the PRINT3270 intrinsic must specify an action value of 0 to open the output file. You can use more than one spooled output file within the same program, because the fileid parameter provides a unique identifier each time PRINT3270 is called with. By opening more than one output file, you can segregate internal screen images into separate files based on the data they contain or the devices to which they are directed. The formal file designator for the output file that PRINT3270 opens is LOGIMF. The device class of LOGIMF is "LP." If device class "LP" is spooled, the output of PRINT3270 will be sent to the spooler. The LOGIMF file can be routed to disk instead of to the spooler with the following file equation: :FILE LOGIMF,NEW;DEV=DISC;REC=-133,,,ASCII;NOCCTL;SAVE The LOGIMF file may be equated to another file, which must have a record size of 133 bytes and contain ASCII data. It may not be a KSAM file. You can use the location parameter, which is a character string, to identify the origin of the printed screen images. If you use a narrow width paper you should set the location parameter to 40 blanks.
The PRINT3270 intrinsic cannot be used during LU.T1 emulation or while in transparent mode. Use the PRINT3270 intrinsic only in non-transparent mode, during LU.T2 and LU.T3 sessions. CALL "CPRINT3270" USING TERMINALID FILEID ACTION LOCATION PRIORITY RESULT. (on MPE V and in compatibility mode on MPE XL) CALL INTRINSIC "PRINT3270" USING TERMINALID FILEID ACTION LOCATION PRIORITY RESULT. (in native mode on MPE XL) All parameters are numeric data items except LOCATION, which is an alphanumeric data item. CALL PRINT3270 (TERMINALID, FILEID, ACTION, LOCATION, PRIORITY, RESULT) All parameters are integer variables except LOCATION, which is a character array. CALL BPRINT3270 (T, F2, 03, L$, P2, R) (on MPE V and in compatibility mode on MPE XL) CALL PRINT3270 (T, F2, 03, L$, P2, R) (in native mode on MPE XL) All parameters are integer variables except L$, which is a string variable. PRINT3270 (TERMINALID, FILEID, ACTION, LOCATION, PRIORITY, RESULT) All parameters are integer variables except LOCATION, which is a byte array. PRINT3270 (TERMINALID, FILEID, ACTION, LOCATION, PRIORITY, RESULT); All parameters are short integer variables except LOCATION, which is a packed array of char. PRINT3270 (&TERMINALID, &FILEID, &ACTION, LOCATION, &PRIORITY, &RESULT); All parameters are of type short, except LOCATION, which is an array of characters (a pointer to a char). Following are excerpts from a Pascal program that calls SNA IMF intrinsics. For examples of complete Pascal programs in non-transparent and transparent modes, see Appendix F “Sample Programs”
|
|