Examples: CL programming

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

These CL 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 program or procedure as threadsafe unless all the commands the CL program or 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.