Previous Topic: PAR

Next Topic: Special Considerations

LCL

The LCL context provides the ability to define variables that are local to a given function. It is available in all situations where the WRK context is available and all fields defined in the model are presented for selection.

Although neither parameter provide a method of defining local work variables, this method requires additional effort and is not as flexible.

The LCL context provides an alternative to the WRK context and avoids two major pitfalls of the latter. Since the WRK context is global

Set the Parameter Default Context (YDFTCTX) model value to *LCL to use LCL rather than WRK as the default context for parameter defaulting in the action diagram editor.

The model-level default context is displayed in the Subfile Control area when an action has undefined parameters. This field can then be changed prior to pressing F10. Available default contexts are:

Both and Input parameters use the LCL context.