EXECUTE
The EXECUTE (EXE) service executes a list of SYSPROG Services, MVS, or JES commands listed in a member within the specified data set.
This service enables you to invoke standard sequences of commands. Each SYSPROG Services command in the data set must be prefixed with @ (for example, @ENQ, @REPLIES) to distinguish it from MVS or JES commands.
Syntax
The parameters are defined as follows:
Parameter | Description |
---|---|
memberName | member within the specified or default data set |
dsname | specified data set name
|
Example
To execute the commands listed in BBPARM library member SHIFT1, type
EXE,SHIFT1
AMTC22I IEE303I 01A0 OFFLINE [2]
AMTK10I
AMTK11I V 01A1,OFFLINE [1]
AMTC22I IEE202I 01A1 OFFLINE [2]
AMTK10I
AMTK11I V 01A2,OFFLINE [1]
AMTC22I IEE303I 01A2 OFFLINE [2]
AMTK10I
AMTK11I V 01A3,OFFLINE [1]
AMTC22I IEE303I 01A3 OFFLINE [2]
AMTK10I
Legend:
- command read from the BBPARM member SHIFT1
- results of the command
In the following example, the EXECUTE service is used to execute three services contained in member STATUS in the data set VAM3.RES.LIB. The services are preceded by the @ symbol, indicating that they are MainView SYSPROG services. The services are executed sequentially, with the results displayed after each service name.
To execute the contents of the member STATUS in the data set VAM3.RES.LIB, type
EXE,STATUS,VAM3.RES.LIB
AMTQ2PI SYSTEMS (GLOBAL) Q=SYSIGGV2 R=ICFMCAT.SYSB [2]
AMTQ2QI SYSID JOBNAME ASID STAT TYP TIME 9:11:08
AMTQ2RI SYSB CATALOG (0023) OWNS SHR CVT
AMTK10I
AMTK11I @ENQ [1]
AMTQ15I NO ENQ CONFLICTS EXIST [2]
AMTK10I
AMTK11I @IO [1]
AMTI11I +*MASTER* Unit 227 PAGD27 IOQ 00FA4E00 Driver-ASM CCHH- 157 3 [2]
AMTI11I XCFAS Unit 800 IOQ 00FA4C00 Driver-*UNKNOWN
AMTI11I +XCFAS Unit 801 IOQ 00FC1100 Driver-*UNKNOWN
AMTI11I XCFAS Unit 804 IOQ 00FA4900 Driver-*UNKNOWN
AMTI11I +XCFAS Unit 805 IOQ 00FA4F80 Driver-*UNKNOWN
AMTK10I
Legend:
- name of the service to be executed
- results of the executed service
Usage notes
- The z/OS and JES2 commands are executed by using the COMMAND service. Each z/OS command that is executed is logged at the issuing console.
- The data set name specified (or the default data set) is not saved across sessions. You must specify a data set name, or accept the defaults, each time you restart MainView for z/OS.
- You can display the previously entered data set name by typing EXEcute without any parameters.
Related topic