CICSPlex SM command format

The format of an API command when issued through the CICSPlex® SM command-level interface is EXECUTE CPSM (or EXEC CPSM) followed by the name of the required command and possibly by one or more options.

The syntax is as follows:
   EXEC CPSM command option(arg)....
where:
command
Describes the operation required (for example, CONNECT).
option
Describes any of the required or optional facilities available with each command. Some options are followed by an argument in parentheses. You can write options (including those that require arguments) in any order.
arg
Which is short for argument, is a value such as data-value or data-ref. A data-value can be a constant. This means that an argument that sends data to CICSPlex SM is generally a data-value. An argument that receives data from CICSPlex SM must be a data-ref.

Here is an example of an EXEC CPSM command:
   EXEC CPSM CONNECT
             USER(JONES) VERSION(0310)
             CONTEXT(EYUPLX01) SCOPE(EYUCSG01)
             THREAD(THRDTKN)
             RESPONSE(RESPVAR) REASON(REASVAR)
You must add an end-of-command delimiter that is valid for the programming language you are using. In COBOL programs, for example, the end-of-command delimiter is an END-EXEC statement. In PL/I and C programs, the delimiter is a semicolon (;).