Use the execute form of the MGCRE macro together with the list form of the macro. The execute form of the macro stores the parameters into the storage area defined by the list form.
The execute form of the MGCRE macro is written as follows:
Syntax | Description |
---|---|
name | name: Symbol. Begin name in column 1. |
␢ | |
One or more blanks must precede MGCRE. | |
MGCRE | |
␢ | One or more blanks must follow MGCRE. |
TEXT=text addr | text addr: RX-type address or address in register (2) - (12). |
,CONSID=console id | console id: RX-type address or register (2) - (12). |
,CONSNAME=console name | console name: RX-type address or address in register (2) - (12). |
,CMDFLAG=NOHCPY | |
,CMDFLAG=TSO | (NOT a programming interface) |
,TOKEN=token | token: RX-type address or register (2) - (12). |
,UTOKEN=utoken addr | utoken addr: RX-type address or address in register (2) - (12). |
,CART=cart | cart: RX-type address or address in register (2) - (12). |
,ENVRIN=envrin addr | envrin addr: RX-type address or address in register (2) - (12). |
,AUTHCMDX=authcmdx addr | authcmdx addr: RX-type address or address in register (2) - (12). |
,PLISTVER=plistver | plistver: 1 - 3. |
,MF=(E, list addr) | list addr: RX-type address or register (2) - (12). |
The parameters are explained as follows:
The system translates characters that are not valid into null characters (X'00').
To code: Specify the RX-type address of a pointer field that contains the address, or the register (2) - (12), of a particular field.
CONSNAME specifies the required input field that contains the console name. The console name is a 2- to 8-byte character string. If a register is used, it should contain the address of an 8-byte field containing the console name. This name identifies the console that issued the command specified in the TEXT parameter. The console name is left-justified and padded with blanks. If you specify CONSNAME, do not specify CONSID.
You must specify either CONSID or CONSNAME. Use the DISPLAY CONSOLES command to obtain these values.
1000000000000000 - Master Authority
0100000000000000 - Sys Authority
0010000000000000 - IO Authority
0001000000000000 - Cons Authority
0000000000000000 - Info Authority
list addr specifies the area that the system uses to store the parameters.
MGCRE might abnormally terminate with abend code X'D22'. See z/OS MVS System Codes for an explanation and programmer response for this code.
Register 15 contains one of the following hexadecimal return codes as the result of a START, MOUNT, or LOGON command. No return codes result from any other commands.
Return Code | Meaning and Action |
---|---|
00 | Meaning: The START command processed successfully.
Register 0 contains the right-justified ASID of the started address
space. Action: None. |
04 | Meaning: A START, MOUNT, or LOGON command
was suppressed by the SSI or an MVS commands installation exit.
Register 0 does ot contain a valid ASID; instead it contains all
zeros. Action: None. |
08 | Meaning: Environmental error. The START
command failed for one of the following reasons:
Action: Check to see if the START command specified a console that is not authorized for entering the command, and correct the situation if necessary. Next, retry the request. If the problem persists, record the return code and supply it to the appropriate IBM support personnel. |
DOMTST CSECT
R2 EQU 2
USING *,R12
LA R2,CMD R2 POINTS TO THE COMMAND AREA
MGCRE MF=(E,LAREA),TEXT=(R2),CMDFLAG=(NOHCPY),CONSNAME=MYCON
CMD DS 0CL6 THE COMMAND AREA
CMDLEN DC XL2'4' LENGTH OF COMMAND
CMDCOMM DC CL4'D C ' THE ACTUAL COMMAND
MYCON DC CL8'CON4 ' NAME OF ISSUING CONSOLE
LAREA MGCRE MF=L LIST FORM OF MGCRE
END