cmscmd --- The CMS command to be issued.
CP cpcmd- The CP command to be issued.
Purpose
Use the CMS command to issue CMS and CP commands to the SafeAccess server's console and return the last line of the command's output.
Authorization
SAFADMIN authorization.
Parameters cmscmd
The CMS command to be issued. Command options may be included.
CP cpcmd
The CP command to be issued prefixed by CP. Command options may be included.
Return Codes
Return Code
Meaning
nnnn
Return code from the command that was issued.
4
Not authorized.
8
Command failed. Command output is not returned.
Usage Notes
CP commands may be issued by prefixing them with CP. See the example below.
The CMS command should not be used to invoke full screen functions such as XEDIT. This will cause the SafeAccess server to hang. LOGON to the SafeAccess server if it becomes hung due to a command. Logging onto the SafeAccess server will cause it to stop processing. After terminating the command reissue the SAFESERV INIT command to restart the server.
Only the last line of the command output is returned to the issuer.
Do not issue the LOGOFF command via the SafeAccess CMS command.
Examples
CMS CP QUERY VIRTUAL DASD
This command causes the CP QUERY VIRTUAL DASD command to be issued on the SafeAccess server, and the results are displayed on the SafeAccess server console. The last line of the CP QUERY VIRTUAL DASD output is displayed on the issuing user's console.