The QCMDEXC procedure executes a CL command.
The schema is QSYS2.
- A character string expression containing a CL command.
The CL-command-string will be run as a CL command.
- Add a library to the library list.
CALL QSYS2.QCMDEXC('ADDLIBLE PRODLIB2');
- Add a library to the library list using an expression.
DECLARE V_LIBRARY_NAME VARCHAR(10); SET V_LIBRARY_NAME = 'PRODLIB2'; CALL QSYS2/QCMDEXC('ADDLIBLE ' CONCAT V_LIBRARY_NAME);