TSO/E


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

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

Related topic

To run the CLI from the TSO/E command line

To run the CLI from the TSO/E command line, use the following command:

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, you need to redirect stdout. 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 run the CLI from REXX EXEC

To run the CLI from REXX EXEC, use the following command:

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

 

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