Notes on CL programs

(1) Use of CL variables

If you use a CL variable in a parameter to pass a value to HULFT, the value must end with "0x00". Make sure to specify "*CHAR" for TYPE and the value "maximum index+1" for LEN of the CL variable, respectively. See the examples of CL programs for the positions to set "0x00". If you do not set "0x00", the variable is considered to be continuous and the length of the parameter may cause an error.

(2) Code returned when commands unsuccessfully ends

Usage of CL variables

As to the CL variable that substitutes for error codes, set the TYPE to "*CHAR", and the LEN to "8", respectively. Specification of the VALUE is optional. Specify the parameter "EXIT" immediately before the CL variable, in the format of " "EXIT" & CL variable name" with a space between each element. If a request ends unsuccessfully, the value of the CL variable is changed to the format of "HULxxxx".

Successful End of Commands

If a request ends successfully, the value of the CL variable that substitutes for error codes remains unchanged.

Initializing CL variables

When you receive the error codes assigned to the CL variable, initialize the variable before you call it.

Using the same CL variable repeatedly without initialization might cause an incorrect outcome, because the replacement value set by the previous operation might remain.