Identification division - cobol programming, COBOL Programming

Identification Division:

The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the machines. The other paragraphs are elective.

The structure of Identification division is shown below:

IDENTIFICATION DIVISION.

PROGRAM-ID. Entry

[AUTHOR. entry.]

[INSTALLATION. entry.]

[DATE-WRITTEN. entry.] Optional

[DATA-COMPILED. entry.]

[SECURITY. entry.]

[REMARKS. entry.]

The division heading and paragraph names must be coded as A margin entries. The entries subsequent the paragraph headings should be terminated by a period. The entry in the PROGRAM-ID paragraph includes the program name to be used to identify the object program.

The entries in the other paragraphs are generally treated as comments and the programmer is free to write whatever thing for these entries. Only significant entries must be included in these places to provide better clarity and documentation.

The entry for the AUTHOR paragraph may include the name of the programmer. The entrance of the DATE-COMPILED paragraph may hold the date of compilation. If this entry is left blank, then the compiler inserts the real date in the listing of the source program which may be printed during the compilation.

Posted Date: 10/16/2012 3:35:19 AM | Location : United States







Related Discussions:- Identification division - cobol programming, Assignment Help, Ask Question on Identification division - cobol programming, Get Answer, Expert's Help, Identification division - cobol programming Discussions

Write discussion on Identification division - cobol programming
Your posts are moderated
Related Questions
FILE STATUS clause: This clause has been involved in the above syntax for completeness. The ORGANIZATION, REVERSE, ACCESS and STATUS clause can be specified in any order.

When using the accept verb in cobol is it possible to assign something other then "SYSIN" for a ddname?

READ STATEMENT: The aim of this verb is to make available the next logical record from the input file. It is important to note the meaning of the "next" logical record in the

File volatility: File volatility associates to the number of times the updating of records are needed during some time period. File interrogation: Some files hold re

FILE-CONTROL paragraph for the indexed files: The common format for the SELECT clause for a file is as shown below: SELECT  file-name  ASSIGN   TO  implementor -name

Literals: The actual values can too appear in a program. These values are termed as literals. For illustration, the statement MOVE 0 TO TOTAL indicates that the value zero wil

Example of compound condition: In common, a compound condition has the form which is as shown below: Where condition-1 & condition-2 can be any one of the below:

REWRITE statement: The REWRITE statement is used to update the existing record in a disk file. The normal format is as shown below: REWRIE  record-name  [  FROM      ide

ARITHMETIC VERBS: Most of the problems need some computations to be performed on the input or intermediate data that are numeric in nature. The Arithmetic verbs are used to pe

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if