USAGE Clause in COBOL Why do We need

For numeric data items, we use the Usage clause in COBOL. It tells the form data is stored internally on the computer. We can use it with any level number other than 66 or 88. Here are more rules for Usage clause.

COBOL usage clause

USAGE IS DISPALY
         COMP
         COMP-3

The USAGE clause may be used both in group item or an elementary item. If it is used in group item then it applies to all the items in that group.

USAGE Clause in COBOL Why do We need

Usage clause example

01 Table-1  usage is COMP.
   05 item-1  pic 9(10).
   05 item-5  pic 9(5).

Related Posts

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.