Previous Topic: CLOSEBUF CommandNext Topic: OPENBUF Command


GETSCRN Command

The GETSCRN command captures the screen image associated with a session and places information about that session in variables.

This command has the following format:

"GETSCRN SESSION(sessname) [SCREEN(YES|NO)] [PREFIX(prefix|LINE|NO)]"
SESSION

Specifies the name of the session (sessname) from which you want to capture the screen image.

SCREEN

(Optional) Specifies whether to create the REXX variable SCREEN to store the character portion of the screen image. This operand has two options:

YES

Creates the SCREEN variable.

NO

Does not create the SCREEN variable. Specifying SCREEN(NO) saves memory if you do not intend to use the SCREEN variable.

Default: YES

PREFIX

(Optional) Creates a stem variable to store the lines of a screen image returned to CA Automation Point. CA Automation Point stores each line of the screen in a separate variable and numbers the variables consecutively (for example, LINE.1, LINE.2, and so on).

Note: The variable numbered 0 (for example, LINE.0) always contains the total number of elements in the stem variable.

Valid PREFIX values are:

prefix

The name that you want to assign to the variables set by the PREFIX operand. For example, specifying PREFIX(ROW) causes CA Automation Point to create stem variables named ROW.0, ROW.1, ROW.2, and so on through ROW.n.

LINE

Tells CA Automation Point to create REXX variables named LINE1 through LINEn to store lines of a screen image.

NO

Does not create the screen variable. Specifying PREFIX(NO) saves memory if you do not intend to use the variables.

Default: LINE

Usage Notes:

Examples--capture screen image: