QCMDEXC procedure
The QCMDEXC procedure executes a CL command.
Authorization: Any authority requirements for the CL command apply to the use of this function.
The schema is QSYS2.
- CL-command-string
- A character string expression containing a CL command.
The CL-command-string will be run as a CL command.
Examples
- 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);