BSP - Beratung, Schulung, Projekte


BSPOSCMD - Run OS commands from Batch

What does it do?

This program executes OS commands in batch. The commands can be passed via PARM statement, or via SYSIN DD statement, or both

Required DD statements:

none

Optional DD statements

DDNAME Description Default
SYSPRINT output queue for messages SYSOUT=X
SYSIN Input data n/a

Usage

Assembly and Link JCL can be found in SYS1.SETUP.CNTL(OSCMD$).
Execution JCL can be found in SYS1.SETUP.CNTL(OSCMD#) and looks like this:

//OSCMD   JOB  ....
//CMD1   EXEC PGM=BSPOSCMD,PARM='V 128,OFFLINE'
//CMD2   EXEC PGM=BSPOSCMD
//SYSIN  DD   *
V 128,OFFLINE
S DEALLOC

Disclaimer

Although this program has been tested on the Turnkey MVS system Version 3 it is not guaranteed to be bug-free (which program is?)

Use at your own risk