Glb.Work is a read-writable built-in segment attribute that is intended for use transferring information between ispecs. It is associated with each terminal client, and is unaffected by the activity of other terminal clients in the network.
Glb.Work is accessible from all ispecs in the application. Values are usually stored and retrieved from Glb.Work using either complex Move logic statements or complex attribute, or automatically by specifying complex attributes of the Segment to be persistent. If there is more than one persistent complex attribute involved, it is convenient to group them together in a Folder with an indicative name such as, GLB_WORK_BLOCK.
If a Segment persistent attribute contains initial values, these are overwritten by the Glb.Work value. Thus initial values used in this context have no effect. The contents of the attribute are not cleared by automatic logic, but are overwritten by the Glb.Work value.
The variable used for Glb.Work is handled as follows:
Before Construct method logic, the variable is assigned the Glb.Work value. At the completion of the Construct method, Glb.Work is set to the value of the variable.
Before Prepare method logic, the variable is assigned the Glb.Work value. For copy ispecs and copy events, the variable is re-assigned the Glb.Work value before the first cycle of the update phase (when the Glb.Copy built-in segment attribute is set to 1). This overwrites any changes made to this variable in the validation phase.
At the completion of the update phase of Main method logic, Glb.Work is set to the value of the variable.
The Glb.Work value can be preserved between sessions by selecting the option Preserve Session Data on the Segment dialog box.
The length of Glb.Work can also be specified in the Segment Configuration. By default, the minimum length is 128 characters. The maximum is 4095 characters, the default is 128 characters.
Glb.Work is recovered with the system. It is maintained when the Glb.Error built-in segment attribute is set to "*****", but not when Teach screens are displayed. Glb.Work can be used by GLI input, although it is not available for Offline input or external automatic entries.
For OLTP this is set to spaces.
Properties
Length = in the range 128 through 4095
Primitive = String