Explanation of Identification Division



Explanation of Identification Division

A Division is a block of code, which contains one or more sections or set of sections or set of sentences or block of statements.

It begins with division name and ends at the beginning of the next division or at the end of the program.

Divisions are known as system defined words.

All Divisions should be coded in AREA A.

Identification Division provides the program name and other items used to uniquely identify the program.
This division is required in every COBOL program.

In other words, the identification is used to identify the programmer who has write program and it may contain optional
entries like Author,Installation, Date-written, Date-compiled and security depending on the requirement.

PROGRAM-ID is a keyword and it must be specified immediately after the identification division and it is mandatory
in COBOL PROGRAM.

Program name can be up to 8 Characters MAXIMUM.

All the entries in Identification Division should be coded in AREA A.

The Complete syntax of the Identification Division is as follows.

Syntax:

[Mandatory] Identification Division.

[Mandatory] Program-id. Name of the Program.

[Optional] Installation. Development-Center.

[Optional] Date-Written. mm/dd/yy.

[Optional] Date-Compiled. mm/dd/yy. HH:MM:SS.

[Optional] Security. Program-type.


Program- id:

The name of the program will be updated with program-id.

The Length of the program name is up to 8 characters maximum.

By using the program name provided with program-id, the load module will be created after the compilation.

To Execute the program, the name provided with program-id needs to be provided in JCL or in PPT enteries.

The actual source name and name provided with program-id may not be same in all cases.

This is a Mandatory entry(Program-id).


Author:

It describes the name of the programmer who written the program.

This is comment entry which is set of character from the computer character set.

The Comment entry can be written any number of lines before starting another statement in AREA A.

This is optional in Identification Division.


Installation:

It describes the name of the location or company where they installed.

This is also a comment entry.

This is optional in Identification Division.


Date-Written:

It describes the actual date of the program written.

This is also a comment entry.

This is optional in Identification Division.


Date-Compiled:

It describes the actual date of the program compiled.

Date-Compiled details are automatically written by the compiler during the compilation time.

This is also a comment entry.

This is optional in Identification Division.


Security:

The Security describes the confidentiality level of the program.

This is also a comment entry.

This is optional in Identification Division.


Practical Example:

A Simple Program with all entries of identification division was coded like below.


Program Code:

Identification Division.

Program-id. FIRST.

Author Ajay.

Installation SEPT 2015.

Date-Written 06/06/2016.

Date-Compiled. 06/06/2016.

Security Private.

Environment Division.

Data Division.

Procedure Division.

Display 'Identification Division with all entries'.
stop run.


Note:- I will be updating this blog frequently.✍

Thank you for visiting this blog☕️

You Might Also Like

0 comments

TO VIEW THEN CLICK ON IMAGE OF THAT PRODUCT