gtpg2m0uGeneral Macros

CM0ND-Build Standardized Scan Tables

This general macro is used to build standardized keyword tables to be used directly by the application or indirectly by the CM0PR macro in scanning input messages.

Format




label
A symbolic name can be assigned to the macro statement.

keyword
This specifies the keyword to be scanned for. Keywords can be up to 8 characters in length.

length
This specifies the length of the minimum acceptable abbreviation of the keyword. If the length parameter is omitted, (for example, CM0ND START,,STOP,,), then it will default to the length of the keyword itself, (5 and 4 respectively, in the previous example) up to the maximum of 8 characters. If a comma appears at the end of a line without a following length field, the comma may be dropped.

Entry Requirements

At least one keyword must be specified.

Return Conditions

Control is returned to the next sequential instruction.

Programming Considerations

Examples

TABLE1   CM0ND DISPLAY,3,START,,DEFINE,3,LOCATE,3

Will expand inline into the following table:

TABLE1   DS    0H
         DC    AL1(3-1)            (MINIMUM) COMMAND (EXECUTE) LENGTH
         DC    AL1(4)              BRANCH VECTOR
         DC    CL8'DISPLAY'        COMMAND
         DC    AL1(5-1)            (MINIMUM) COMMAND (EXECUTE) LENGTH
         DC    AL1(8)              BRANCH VECTOR
         DC    CL8'START'          COMMAND
         DC    AL1(3-1)            (MINIMUM) COMMAND (EXECUTE) LENGTH
         DC    AL1(12)             BRANCH VECTOR
         DC    CL8'DEFINE'         COMMAND
         DC    AL1(3-1)            (MINIMUM) COMMAND (EXECUTE) LENGTH
         DC    AL1(16)             BRANCH VECTOR
         DC    CL8'LOCATE'         COMMAND
         DC    XL1'FF'             DENOTE END OF LIST
         DS    0H