You can use the SYSCMD facility to simulate issuing a command from a specific console you are not using from anywhere in the system.
Because no console authority checks are made by the SYSCMD facility, the existing authority for the specified console is used.
Note: The form of the SYSCMD command described is not supported if you are using EXTMCS consoles.
To simulate issuing a command from a specific console that you are not using, enter the following command:
SYSCMD CON=n DATA=command_text
Is the console number.
This form of the SYSCMD command is useful in NCL procedures started under console user IDs.
Example: Simulate Commands
A console operator, on Console 15, issues the following z/OS modify command to send a command to your region:
F nm,XYZ
Console 15 is signed on to the region as xxxxCN15 (where xxxx is the system user prefix). The XYZ command is then executed in this signed-on environment. Because XYZ is not a command recognized by the region, an NCL procedure of the same name is loaded and executed. If the following statements are in XYZ, then the commands are sent to z/OS as if they were entered one after the other at Console 15:
SYSCMD CON=&ZCONSOLE DATA=D J,L SYSCMD CON=&ZCONSOLE DATA=D U,ALLOC
The result of the above commands is then returned to Console 15 without being intercepted by SYSCMD. This is true even when the specified console number is the same as a currently acquired console; the output is sent to the current owner of the console.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |