Examples: Using the Parsing Facility

Suppose you have two commands, MYCMD1 and YOURCMD.

MYCMD1 has the following syntax:
Read syntax diagramSkip visual syntax diagram MYCmd1   fn  ft (1DIskPRintNUMrecs  nnn)
Notes:
  • 1 When options are entered between the left '(' and right ')' delimiters, they can be in any order.
YOURCMD has the following syntax:
Read syntax diagramSkip visual syntax diagram YOURcmd   string (TYPE)

Instead of coding syntax checking into your program, you plan to invoke the parsing facility for these commands. Therefore, create a DLCS file, called TEST DLCS, to contain both syntax definitions.