Previous Topic: Return CodesNext Topic: Insert Literal Strings or Variables into SESSCMDs


Mark Screen Text to Assign to a REXX Variable

The S (Set variable) command of the EPI allows you to fetch a piece of screen text and assign its value to a single REXX variable. The experienced mode version of the S command has this format:

S varname

You can use either absolute or relative positioning to specify which screen text to capture depending on whether the text you are capturing can vary. For example, if you want to capture the text 3.8M from the CA NetSpy Statistics Screen and make that text the value of a variable called MEASURED_INTERVAL, you would type over the appropriate screen text as follows:

MEASURED @NTERVAL@ #3.8M#

Then, you would issue this command:

S MEASURED_INTERVAL

As a result, the EPI finds the screen text marked with the @ character, inserts the MEASURED_INTERVAL variable into your automation EXEC, and gives it the value 3.8M.

Note: You use the absolute screen location character to mark the start and end of the screen text to be captured.