To be able to evaluate a data item (variable, view or reserved word), select option 1 in front of the HA#EVAL line in the Select a debug command screen.
Notes:
-
- You can also enter the HA#EVAL command directly in the "Debug" line, followed by the variable name.
- The value will then be shown directly in the "Debug" line.
- When the data in a variable is longer than 144 characters, or if you want to see a global array value, a different screen Display a long variable will appear.
- The procedure for modifying a value is described here.
Function keys
Refer to the relevant IBM guide for more details.
Data entry
Variable or view of the model
Adelia guide word for the variable or view to be evaluated, or for the Adelia reserved word.
Class
Data type to be evaluated.
Possible values:
"*VAR" |
The data item to be evaluated is a variable in the current module (or a reserved word). Default value. |
"*VIEW" |
The data item is a view in the current module. |
Output format
Possible values:
"*CHAR" |
The value will be displayed in character mode. Default value. |
"*HEX" |
The values of data belonging to the variable class will be displayed in hexadecimal mode. |
Note: Views will be displayed using the EXISTS and DOES_NOT_EXIST predicates.
Direct command entry
You can also enter the HA#EVAL command directly in the "Debug" line, followed by the variable name.
The value will then be shown directly in the "Debug" line.
Notes:
-
- For a one-dimensional array, to see a given element's value, you must use the following type of syntax: "HA#EVAL ARRAY(N)".
- For a two-dimensional array, you cannot obtain the value of an element in the array with the following type of syntax: "HA#EVAL MATRIX(L,C)". To see the element's value, you must request it using "HA#EVAL MATRIX(N)" where N equals DIM2 * (L -1) + C (where DIM2 is the array's second dimension).
Example:
HA#EVAL CORD_KEY to display the value of the CORD_KEY variable.
HA#EVAL *IN07 to display the value of indicator number 07.
HA#EVAL ARRAY(5) to obtain the value of the 5th item in the ARRAY array.
HA#EVAL CQUANTITY VAL(123) to assign the value 123 to the CQUANTITY variable.