SETUPD

Syntax

SETUPD expression

The SETUPD instruction sets the value of a user variable and updates its default value in a variable table. The new default value can be used jobs in an application occurrence that use that variable.

The variable table must be specified by the INIT instruction.

SETUPD is equivalent to both the SET and UPD instructions.

The SETUPD instruction uses the EQQPIFT program, which is in the EQQPIFJV member of the scheduler sample library. You need to specify the CARDIN DD card in the OCL procedure EQQYRPRC.

Examples:
  SETUPD VAR1 = '00000'
  SETUPD VAR1 = SUBSTR(&OYMD1,5,2) + 1

According to the previous example, enclose within single quotes any input string or character when specified as value of a user variable.

The SETUPD instruction returns one of the following return codes:
CC = 0
Instruction correctly processed
CC = 4
Variable does not exist in the variable table; it is added
CC = 8
Invalid instruction. See the error messages.