Set the value of a Field / Variable. Note that a field value will persist throughout the life of the SSO scripting environment.
There are actually four different types of values that you can set a field/variable from, each of which is described in the Syntax.
SetField=[FieldName],["Expression" OR ?Switch Expression OR Row,Column,Length OR @Function OR FieldName]
Where:
FieldName | Name of field/variable, no spaces and case sensitive |
"Expression" | Text expression which starts with matching single or double quotes and can contain Handlebar bracketed Field/Variable values |
?Switch Expression | Multiple expressions selected based on a variable value -- see ?Switch Expression |
Row,Column[,Length] | Numeric integers, comma-separated indicated a value from the current screen--note that you can omit length if reading a 5250 or 3270 screen and the whole field found at Row, Column will be read |
@Function | A function name with parenthesis and parameters--such as @GenPW |
FieldName | Unquoted text indicated another Field/Variable name |
SetField=NewPW,@GenPW(10,'$!*') # Set NewPW with generated PW
SetField=HostID,2,24 # Set HostID with field on screen at row 2, column 24
SetField=HostPW,3,24 # Set HostPW with field on screen at row 3, column 24
SetField=Command,"DISPSPL {{HostID}}" # Set Command using text and value of HostID field