Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Language Reference


Condition-name

Read syntax diagramSkip visual syntax diagram
Format 1: condition-name in data division

                     .-------------------------.   
                     V                         |   
>>-condition-name-1----+---------------------+-+---------------->
                       '-+-IN-+--data-name-1-'     
                         '-OF-'                    

>--+---------------------+--+---------------------+------------><
   '-+-IN-+--file-name-1-'  |    .-----------.    |   
     '-OF-'                 |    V           |    |   
                            '-(----subscript-+--)-'   

Read syntax diagramSkip visual syntax diagram
Format 2: condition-name in SPECIAL-NAMES paragraph

                     .-----------------------------.   
                     V                             |   
>>-condition-name-1----+-------------------------+-+-----------><
                       '-+-IN-+--mnemonic-name-1-'     
                         '-OF-'                        

condition-name-1
Can be referenced by statements and entries either in the program that contains the definition of condition-name-1, or in a program contained within that program.

If explicitly referenced, a condition-name must be unique or be made unique through qualification or subscripting (or both) except when the scope of names by itself ensures uniqueness of reference.

If qualification is used to make a condition-name unique, the associated conditional variable can be used as the first qualifier. If qualification is used, the hierarchy of names associated with the conditional variable itself must be used to make the condition-name unique.

If references to a conditional variable require subscripting, reference to any of its condition-names also requires the same combination of subscripting.

In this information, condition-name refers to a condition-name qualified or subscripted, as necessary.

data-name-1
Can be a record-name.
file-name-1
Must be identified by an FD or SD entry in the data division.

file-name-1 must be unique within this program.

mnemonic-name-1
For information about acceptable values for mnemonic-name-1, see SPECIAL-NAMES paragraph.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)