What is PIC clause in COBOL?

  • PIC stands for Picture Clause → defines the type & size of a variable.

Example:

01 NAME  PIC A(10).    *> 10 characters (Alphabetic)
01 AGE   PIC 9(3).     *> 3-digit number
01 SALARY PIC 9(5)V99. *> 5 digits + 2 decimal places

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *