DBRC command request (COMMAND)
You can use the DSPAPI FUNC=COMMAND request to issue a DBRC utility command from your application program. All DBRC commands are accepted on this request, except for the LIST command.
All output generated by the DBRC command request is returned in an API output block rather than sent to SYSPRINT. If DBRC command authorization is enabled, commands entered through the API are produce the same results as the commands executed through the DBRC utility. An IMS DD statement might be required. If GENJCL commands are executed, both a JCLPDS DD statement (or the DD name you supply with the JCLPDS parameter) and a JCLOUT DD statement (or the DD name you supply with the JCLOUT parameter) are required.