GENERATE_UNDEFINED_SCRIPT_VARS

Systemwide variable that allows you to use the script function GENERATE_SCRIPT_VARS to generate script variables from a VARA object when set to Y.

  • Allowed values: Y and N

  • Default value: N

    Set the value to Y only if you want to use the script function GENERATE_SCRIPT_VARS.

    Example

    GENERATE_UNDEFINED_SCRIPT_VARS = Y

    :SET &ret# = GENERATE_SCRIPT_VARS("VARA.STORE")
    :SET &y# = &x#

    Important! The syntax of script functions is checked when the object is saved or the script is executed. This syntax check is not performed when GENERATE_UNDEFINED_SCRIPT_VARS is set to Y. For more information, see Error Handling in Scripts.

    Examples

    GENERATE_UNDEFINED_SCRIPT_VARS = N

    :SET &x# = 12
    :SET &y# = &x#

    These script commands are executed successfully because &x# is defined.

    GENERATE_UNDEFINED_SCRIPT_VARS = N

    :SET &y# = &x#

    In this case, &x# is not defined. The script command is not executed and the task is terminated at generation.

    GENERATE_UNDEFINED_SCRIPT_VARS = Y

    :SET &y# = &x#

    In this case, the script command is executed and the error occurs at runtime. All previous script commands are executed correctly.

  • Restart required: No

See also:

UC_SYSTEM_SETTINGS - Systemwide Settings