Format of commands

The syntax and synonyms for commands are the same whether the command is entered using a CMD call or from a terminal. All messages returned in response to a CMD call or a command entered from the terminal are the same.

The general format of your I/O work area on a CMD call is:  

LLZZ/verb KEYWORD1 P1 KEYWORD2 P2, P3.  Comments

LL
Two-byte field containing the length of the command text, including LLZZ
ZZ
Two-byte field reserved for IMS
/
Indicates that an IMS command follows
verb
The command you issued
KEYWORDx
Keywords that apply to the command you issued
Px
Parameters for the keywords you specified
. (period)
End of the command

The length of a command is limited by the size of the I/O area; the size is specified in the IOASIZE parameter in the PSBGEN macro during PCB generation. LL is the length of the command text. The size of the I/O area is the length of the actual command text, plus 4 bytes for LLZZ. The minimum size of the I/O work area is 132 bytes. The fifth byte must be a slash (/), and the verb must follow immediately. The /BROADCAST and /LOOPTEST commands must have a period between the command segment and text segment, and must be preceded by an LLZZ field that includes the size of the text. Comments can be added by placing a period (.) after the last parameter.

When issuing the /SSR command, do not code an end-of-message indicator (period). If a period is used, it is considered part of the text.