z/VM EXEC command
The z/VM EXEC Command (EXEC) dialog allows you to run a z/VM EXEC without having to log on to the remote z/VM system. You can invoke a CMS or CP command by adding the CMS or CP prefix to your command. The prefix invokes the MMLVSRV EXEC to capture and return the CMS or CP command output.
The called EXEC must return any output from the EXEC by using the return instruction. See the MMLVSRV EXEC A1 for an example.
Commands that cause a VM READ or a CP READ will stop the MMLVSRV data collector. In these cases, the data collector must be restarted, or the READ must be answered from the MMLVSRV virtual machine console. You should not run the VM READ or CP READ commands or these commands should be submitted to a CMSBATCH machine.
To run long-running commands (such as VM READ or CP READ or those that run longer than the default 20 second specification for the Reply Timeout setting) in the background, specify Y in the Run on CMSBATCH Machine field. The output is saved in BATCH CONSOLE A file when the background CMSBATCH job is finished.
| COMMAND ===> SCROLL ===> PAGE |
| |
| VM System Name: SYSVM01 |
| |
| EXEC Command: |
| cms listfile |
| |
| |
| |
| Run on CMSBATCH Machine? N |
| |
| CMSBATCH Parameters |
| |
| Machine Name: CMSBATCH |
| Account Number: 99999999 |
| Job Name: BATCHJOB |
| Time Limit(seconds): * |
| Print Limit(lines): * |
| Punch Limit(cards): * |
| |
| END to run EXEC command |
| CANCEL to NOT run EXEC command |
| HELP to view related help |
|----------------------------------------------------------------------------|
Related topic