...
- The varname/parameter(s) pair must be enclosed by the delimiter character if it contains any spaces
This command extracts data from the host terminal screen and places it a variable name. You can specify the area of the layout that you want to be copied into the variable. If the variable to receive the data does not exist, one will be created. If the command or parameters contain any spaces, enclose them in the delimiter character (currently ").
Usage
varextract "varname, 10/24"
This example will create a new variable or store a new value in an existing variable called ‘varname’. The value stored in this variable will be extracted from the position row 10, column 24 on the current screen.
varextract "varname, 10/24, 15"
The optional third parameter specifies the number of characters to read at that position. If this value is omitted, the contents of the whole field from the 10/24 position to the end of the screen will be stored in the variable, including any trailing blanks.