The EPI GETSCRN command fetches the current screen image from a CA OPS/MVS-monitored VTAM session, and displays the image on the terminal. Optionally, GETSCRN can store the screen image in OPS/REXX variables that describe the contents and state of the screen.
EPI GETSCRN has the following format:
ADDRESS EPI "GETSCRN keywords"
{SESSION(sessid)}
[CMDRESP(dest)]
[PREFIX(prefix)]
[SUBSYS(ssid)]
[TRUNCATE(YES|NO)]
Defines the session ID of the monitored session.
Value: 1 to 8 characters
(Optional) Specifies the variables to store the fetched screen image.
Value: CLIST or REXX
Default: CLIST
(Optional) Specifies the prefix that you want to use when you create the CLIST or REXX variables.
Value: 1 to 6 characters
Note: For more details about these variables, see Use SESSCMD in a CLIST or REXX EXEC.
(Optional) Addresses the command to a copy of CA OPS/MVS with a subsystem ID other than the default subsystem ID, which is OPSS.
(Optional) Specifies whether CA OPS/MVS truncates the screen image display when you enter GETSCRN from a TSO terminal.
Value: YES or NO
Default: YES
The following sample coding statement fetches the current screen of the VTAM session with session ID CICS2 and displays it on the TSO terminal:
GETSCRN SESSION(CICS2)
This example shows the use of GETSCRN in a REXX program. This REXX program retrieves the current screen from a VTAM session and displays all the CLIST variables that CA OPS/MVS generates from the display.
SESSION = ARG(1)
ADDRESS EPI
'GETSCRN SESSION('SESSION') PREFIX(LINE)'
IF RC > 0 THEN EXIT
SAY 'THE FOLLOWING VARIABLES HAVE BEEN SET'
SAY 'CSRCOL =' CSRCOL
SAY 'CSRPOS =' CSRPOS
SAY 'CSRROW =' CSRROW
SAY 'SCREEN =' SCREEN
SAY 'SCRLEN =' SCRLEN
SAY 'SCRSIZE =' SCRSIZE
SAY 'SCRSTAT =' SCRSTAT
SAY 'SCRWDTH =' SCRWDTH
DO I=1 TO LINE.0
SAY I ':' LINE.I
END
RETURN
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|