TSO/E


The CLI can be executed from TSO/E, the output is displayed on the screen. The general syntax of CLI commands is as follows:

M9CLI <command> <required-parameter> [optional parameters]

Related topic

TO EXECUTE THE CLI FROM THE TSO/E COMMAND LINE

TSO M9CLI LISTDSN M9.SYSTEM.**

TO CAPTURE THE CLI OUTPUT FROM REXX EXEC

The M9CLI output is directed to stdout. To capture the M9CLI output, stdout redirection will be needed, for example:

/* REXX */
"Alloc f(CLIDD) lrecl(1024) recfm(V,B) new reuse"
Address tso "M9CLI LISTDSN M9.PROD.* 1>DD:CLIDD"
cliRc = rc

TO EXECUTE THE CLI FROM REXX EXEC

/* REXX */
Address TSO "M9CLI LISTDSN M9.SYSTEM.**"

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*