Declarations (COBOL)

Use declarations to declare session variables that are effective during a Debug Tool session. Session variables remain in effect for the entire debug session, or process in which they were declared. Variables declared with declarations can be used in other Debug Tool commands as if they were declared to the compiler. Declared variables are removed when your Debug Tool session ends or when the CLEAR command is used to remove them. The keywords cannot be abbreviated.

Read syntax diagramSkip visual syntax diagram
   .-;------------------------------------------.      
   V                                            |      
>>---level--identifier--+-| attribute |-------+-+--;-----------><
                        '-| usage_attribute |-'        

attribute

|--+-PIC-----+--+----+--picture--| usage_attribute |------------|
   '-PICTURE-'  '-IS-'                                 

usage_attribute

|--+---------------+--+-POINTER---------+-----------------------|
   '-USAGE--+----+-'  +-BINARY----------+   
            '-IS-'    +-COMP------------+   
                      +-COMPUTATIONAL---+   
                      +-COMP-1----------+   
                      +-COMPUTATIONAL-1-+   
                      +-COMP-2----------+   
                      '-COMPUTATIONAL-2-'   

level
1 or 77.
identifier
A valid COBOL data name (including DBCS data names).
picture
A sequence of characters from the set: S X 9 (replication factor is optional).

If picture is not X(*), the COBOL USAGE clause is required.

Usage notes

Examples

Refer to the following topics for more information related to the material discussed in this topic.