ENABLE Reference Manual
 ENABLE ATTRIBUTES
 FLAG Attribute
 FLAG Attribute
 You can use the FLAG attribute to set values for flags that can
 be referred to in the application skeleton. You can modify the
 application skeleton through special commands that ENABLE uses to
 test and act upon the value of a user flag. If you modify the
 application skeleton by associating user flags with a block of
 SCREEN COBOL code, ENABLE uses the value of the FLAG attribute to
 determine which blocks of code are to be included or omitted from
 the generated SCREEN COBOL program. The syntax of the FLAG
 attribute is:
 -----------------------------------------------------------------
 | |
 | FLAG { <flag-number> } <flag-value> |
 | { * } |
 | |
 | <flag-number> |
 | |
 | is a positive integer from 0 to 99. ENABLE uses the |
 | value of <flag-number> to identify a specific user flag |
 | in the application skeleton. To determine the |
 | appropriate value for <flag-number>, subtract 100 from |
 | the value of the user flag number in the skeleton. |
 | |
 | * |
 | |
 | indicates that all user flags are set to <flag-value>. |
 | |
 | <flag-value> |
 | |
 | is a positive integer from 0 to 255. ENABLE uses |
 | <flag-value> to determine which blocks of code are to be |
 | generated into or omitted from the portion of the |
 | application that refers to the box. |
 | |
 | The starting value of all FLAG attributes is 0. |
 | |
 -----------------------------------------------------------------
 Consideration
 You can specify user flags so that ENABLE includes an entire
 block of code in the application, includes only certain lines of
 the block of code in the application, or omits the block of code
 entirely. Refer to Appendix D for more information about user
 flags.
 4-28










