Examples: CL programs and procedures

These sample programs demonstrate the flexibility, simplicity, and versatility of CL programs.

The following programs are described by their function and probable user.

Note: Code generated by the ILE CL compiler in V4R3 and later releases is threadsafe. However, many commands are not threadsafe. Therefore, do not consider a CL procedure as threadsafe unless all the commands the CL procedure uses are threadsafe. You can use the Display Command (DSPCMD) command to determine if a command is threadsafe. In addition, information (online help and command documentation) for each command indicates whether the command is threadsafe.
Related information
Multithreaded Applications