Capturing a sequence of text from the session window
When the Continuous Extract option is true, the macro runtime treats the two pairs of Row and Column values as the beginning and ending positions (inclusive) of a continuous sequence of text that wraps from line to line if necessary to get from the beginning position to the ending position. The sequence of text can be as small as one character or as large as the entire application window.
- Initializes the result string to an empty string.
- Reads the continuous sequence of text from beginning to end, wrapping around from the end of one line to the beginning of the next line if necessary.
- Stores the result string in the specified variable.
........Enter / on the data set list command field for the command prompt pop-up
or ISPF line command............................................................
and
suppose that the macro runtime is about to perform an Extract action
with the following settings:
- Continuous Extract is true.
- The row and column pairs are (21, 9) (the 'E' of 'Enter') and (22, 20) (the 'd' of 'command').
- The extraction name is 'Extract1'.
- The data plane is TEXT_PLANE.
- The string variable $strTmp$ is the variable in which the result string is to be stored.
Because the Continuous Extract option is true, the macro runtime treats the row and column pairs as marking the beginning and end of a sequence of text, with the beginning position at (21, 9) and the ending at (22, 20).
'Enter / on the data set list command field for the com-
mand prompt pop-up or ISPF line command'
In contrast, if the Continuous Extract option is set to false in this example, $strTmp$ would contain a string of 24 characters, 'Enter / on tline command'.