Slide 67 of 80
Notes:
- A UDC file contains one or more individual UDCs, separated by an asterisk in column one (characters right of the asterisk are ignored).
- The header consists of the UDC name (required), zero or more parameters, and zero or more UDC options.
- The parameter line may immediately follow the UDC name, or can begin on the following line introduced with the reserved word PARM.
- If ANYPARM is specified it must be the last parameter defined.
- The OPTION line conventionally follows all parameters, though this is not required. Two options (RECURSION and LIST) may appear in the body as well as the option line.
- The header ends at the first non-PARM, non-ANYPARM, non-OPTION command line.
- The body consists of zero or more commands, where the command can be a comment (#), a UDC, a built-in CI command, a command file name or a program file name. The body ends when an asterisk is found in column one. However, a UDC can exit prior to this end point in several ways:
- an error can cause the UDC to terminate
- the :RETURN command exits the UDC
- the :ESCAPE command exits the UDC
- the :EOJ command in a UDC executing in a job
- the :BYE command in a UDC executing in a session