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]
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.**"