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:
1
M9CLI <command> <required-parameter> [optional parameters]
Copied!
TO EXECUTE THE CLI FROM THE TSO/E COMMAND LINE
1
TSO M9CLI LISTDSN M9.SYSTEM.**
Copied!
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:
1
/* REXX */
2
"Alloc f(CLIDD) lrecl(1024) recfm(V,B) new reuse"
3
Address tso "M9CLI LISTDSN M9.PROD.* 1>DD:CLIDD"
4
cliRc = rc
Copied!
TO EXECUTE THE CLI FROM REXX EXEC
1
/* REXX */
2
Address TSO "M9CLI LISTDSN M9.SYSTEM.**"
Copied!
Last modified 1mo ago
Export as PDF
Copy link