Command format
You write SPI commands in the same way as API commands. SPI commands begin with the words EXECUTE CICS, usually abbreviated EXEC CICS, followed by the command name, a verb, or verb-and-option combination.
- INQUIRE FILE
- PERFORM SHUTDOWN
- SET SYSTEM
Options that indicate details of what you want to do follow the command name. The order of the options is unimportant except when the first one is part of the command name (the FILE in INQUIRE FILE, for example).
SPI commands are translated into the language of the program by the same CICS translator that converts API commands, and you can mix the two categories of commands in the same program. However, you must specify the translator option SP when SPI commands are present, or the translator will not recognize them. This feature allows an installation to limit use of the SPI at compile time. Other security features restrict its use at execution time; these are described in Security checking.
EXEC CICS SET FILE(TAXPGM) OPEN
becomes
EXEC CICS SET FILE(TAXPGM) OPEN END-EXEC
in COBOL,
and EXEC CICS SET FILE(TAXPGM) OPEN;
in C or PL/I.For more information about translating the commands, see Using a CICS translator for translator options, and Installing application programs