Throughout this book, syntax is described using the structure defined below.
The >>___ symbol indicates the beginning of a syntax diagram.
The ___> symbol indicates that the syntax diagram is continued on the next line.
The >___ symbol indicates that the syntax diagram is continued from the previous line.
The ___>< symbol indicates the end of a syntax diagram.
Diagrams of syntactical units other than complete statements start with the >___ symbol and end with the ___> symbol.
___ Format _________________________________________________________ | | | >>__STATEMENT__required item____________________________________>< | | | |____________________________________________________________________|
___ Format _________________________________________________________ | | | >>__STATEMENT__ _______________ ________________________________>< | | |_optional item_| | | | |____________________________________________________________________|
If you must choose one of the items, one item of the stack appears on the main path.
___ Format _________________________________________________________ | | | >>__STATEMENT__ _required choice 1_ ____________________________>< | | |_required choice 2_| | | | |____________________________________________________________________|If choosing one of the items is optional, the entire stack appears below the main path.
___ Format _________________________________________________________ | | | >>__STATEMENT__ ___________________ ____________________________>< | | |_optional choice 1_| | | |_optional choice 2_| | | | |____________________________________________________________________|
___ Format _________________________________________________________ | | | <_________________ | | >>__STATEMENT____repeatable item_|______________________________>< | | | |____________________________________________________________________|A repeat arrow above a stack indicates that you can make more than one choice from the stacked items, or repeat a single choice.
___ Format _____________________________________________________________ | | | (1) (2) <___________________ | | >>__STATEMENT_____ _identifier-1____ ____ _______________ _|_________> | | |_literal-1_______| | (3)| | | |_| item 1 |____| | | | | <_______________________________ (4) | | >____TO__identifier-3__ _________ _|_________________________________> | | |_ROUNDED_| | | | | (5) | | >__ ____________________________________________ ____________________> | | |_ ____ __SIZE ERROR__imperative-statement-1_| | | |_ON_| | | | | >__ __________________ _____________________________________________>< | | | (6)| | | |_END-STATEMENT____| | | | | item 1: | | |__ _identifier-2_________________ __________________________________| | | |_literal-2____________________| | | | (7)| | | |_ arithmetic-expression-1 ____| | | | | Notes: | | (1) The STATEMENT key word must be specified and coded as shown. | | | | (2) This operand is required. Either identifier-1 or literal-1 must | | be coded. | | | | (3) The item 1 fragment is optional; it can be coded or not, as | | required by the application. If item 1 is coded, it can be | | repeated with each entry separated by one or more COBOL | | separators. Entry selections allowed for this fragment are | | described at the bottom of the diagram. | | | | (4) The operand identifier-3 and associated TO key word are required | | and can be repeated with one or more COBOL separators separating | | each entry. Each entry can be assigned the key word ROUNDED. | | | | (5) The ON SIZE ERROR phrase with associated imperative-statement-1 | | are optional. If the ON SIZE ERROR phrase is coded, the key word | | ON is optional. | | | | (6) The END-STATEMENT key word can be coded to end the statement. It | | is not a required delimiter. | | | X | (7) The reverse highlighting indicates that arithmetic-expression-1 | X | is an IBM extension. This operand is optional. | | | |________________________________________________________________________|
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.