When you use the Drag and Drop interface, controls that you draw on the screen are automatically associated with data items, usually from graphical Working-Storage or from a data set. You can also manually associate a value or variable with a screen control.
In the Screen Section, the VALUE property determines what data, if any, is associated with a given control. In the AcuBench Screen Designer, two Property window items are associated with this property. The Value property entry is used to set a fixed, initial value shown in the control when in the screen is displayed. The Value Variable property is used to tie the control to a variable data item, which may or may not contain a value when the screen is displayed. When these two properties are both set, the Value property is used to set the initial value for the specified Value Variable.
If you need to change the Exception Variable and the Exception Value, make sure that you change the Exception Variable first and then the Exception Value, because that might cause the Exception Variable to disappear from Working Storage.
To associate a variable with a control without using the Drag and Drop interface:
If you have entered a new variable name, a default value appears in this field. To change the value, click in the Value column next to the Value Picture property and enter a new value. AcuBench automatically updates the variable definition in graphical Working-Storage.
If you select an entry field, for example, and assign a Value Variable property of ws-name, a Value Picture property of X(30), and a Value property of <Enter Name Here>, AcuBench generates the following code:
77 ws-name PIC X(30) VALUE IS "<Enter Name Here>".
03 main-scr-name-ef, Entry-Field, ... VALUE ws-name.