I would like to start a program instead of passing command to the ESM such as TSS. For example, I would like to execute the TSS command in a Rexx program and parse the output to XML q Json. It will allow me more granularity by creating a program per process instead of performing parsing by a client. It this possible?
The short answer is no. XEQCMD of LDAP invokes the R_admin() callable service and the ESM command processor that is behind the R_admin() service. The ESM command processors only access ACF2, TSS, or RACF commands.
If you want to run programs/scripts, there are other options. For example, you can submit JCL to execute programs and/or scripts via FTP. Zowe has capabilities.
I hope this helps.
When using FTP to submit JCL, all joblog output, which should include responses, can be redirected to a PC file. You can then parse this text output looking for the response. It will not be interactive, but if you are trying to verify if something worked or not, I think it'd be possible.
Here's a sample snippet of FTP script to upload JCL to the mainframe, submit it to JES, and route the output to the PC (see pc_dir_name/sample_jcl.log below). Maybe this can help you.
put ./SAMPLE.jcl "public.sample.jcl"
quote site filetype=jes
get "public.sample.jcl" pc_dir_name/sample_jcl.log
quote site filetype=seq
While you cannot pass a command via XEQCMD, you can place messages out to the Syslog at specific points in the processing of the LDAP request to TSS. This may allow you to use automation to intercept the message, grab some data out of it, and start a batch job or do some REXX processing.
See the LDAP TechDocs /Mainframe Software / Security / System z Security Communications Servers (DSI, LDAP, PAM) 15.1 / Configuring / Configure the LDAP Server / Configure the CATSS_UTF Backend / Top Secret Configuration Options / Database-Specific Option (Top Secret)
URL is here;
On this page, see the options for preAddAcidMessage or postADDAcidMessage as well as other message points.