Question:
We have a command rule which checks the value of CMD.CONSNAME and if it contains the system name, allows the command to be issued. Our console names are SYSnxxxx where SYSn is the system name. On some of our systems running z/OS 2.1 and others running z/OS 1.13, the CMD.CONSNAME contains the value "INTERNAL". On others, it contains a console name (e.g. CCCCCCCC) Can you tell me where the value of that event variable is obtained and what would account for the different values I'm seeing?
We get it from the command itself. It is the console id that was used to issue the command. Console 0 (4byte console id) retains the name INTERNAL from a historical perspective.
Essentially these 2 console names are legacy names:
INTERNAL - 4byte id x'00000000' used by some products.
INSTREAM - 4byte id x'00000080' used by IES
You can find documentation about CMD.CONSNAME in the OPS/MVS technical documentation set at https://techdocs.broadcom.com/us/en/ca-mainframe-software.html. Select the product and release and search within the returning page for the information you are looking to find.