Identifier

In the syntax diagrams, the term identifier refers to a user-defined name that, if not unique in a program, must be followed by a syntactically correct combination of qualifiers, subscripts, or reference modifiers necessary for uniqueness of reference.

Read syntax diagramSkip visual syntax diagram
Format 1 - Identifier

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

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

>--+--------------------------------------------------+--------><
   '-(--leftmost-character-position--:--+--------+--)-'   
                                        '-length-'        

data-name-1, data-name-2
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 uniquely identifiable.

The following rules apply:

There are two special cases for the identifier: LINAGE-COUNTER and condition-name.