Format for cobol programs, COBOL Programming

Format for COBOL Programs:

The COBOL is a high-level language. Therefore, a COBOL program can be executed on a computer for which a COBOL compiler exists. The compiler translates the COBOL source program into the machine language object program. The object program is really executed.

The COBOL programs are written in the coding sheets. There are 80 columns in a line of a coding sheet. The page number is coded in the columns 1-3 and the line numbers are coded in columns 4-6. The page and line numbers mutually termed as the sequence number. Based on the type, the entries are coded both from the column 8 or column 12 and in both cases it can be continued up to column 72. The Columns 73-80 can be used to write some identification. The compiler ignores anything which is given in columns 73-80 except when a printed copy of the program is given by the compiler in that case the entries in columns 73-80 are also listed. The use of sequence number is optional and can be omitted. Though, when sequence numbers are given they must appear in the ascending order.

Column                       Field

1-3                    Page Number

4-6                    Line Number (1-6 Sequence Number)

7                       Continuation / Comment

8-11                  A - Margin / Area A

12-72                B- Margin /Area B

73-80                Identification

Posted Date: 10/16/2012 3:21:14 AM | Location : United States







Related Discussions:- Format for cobol programs, Assignment Help, Ask Question on Format for cobol programs, Get Answer, Expert's Help, Format for cobol programs Discussions

Write discussion on Format for cobol programs
Your posts are moderated
Related Questions
Abbreviation: The Consecutive relational conditions in a compound condition can be abbreviated in many cases as shown: (i) When the subjects in the consecutive relational c

RELATIVE FILES: The Files that are stored on a direct access storage medium like magnetic disk are frequently known as direct access files. The COBOL supports three different

PROGRAM FOR ADD VERB: We have to write a simple program to elaborate the ADD verb. You can also use edit characters in the program. Identification division. Program- id.

Example of Perform statement: PERFORM BEGIN-CALCULATION THRU END-CALCULATION. Assume, BEGIN-CALCULATION and END-CALCULTION is paragraph names. The execution of the PERFORM

Example of condition names: The illustration below is of the use of the condition names  77  MARITAL-STATUS     PIC    9   88  SINGLE    VALUE    IS     ZERO   88  MA

Example of Class condition: Let the BASIC-PAY be a data name in the card record defined with picture 9(5) V99. By reading the card we can test the value of the BASIC-PAY to ma


Illustration of perform statement: PERFORM    CALCUALTE-TAX. In this illustration, the CALCULATE-TAX is either a section name or paragraph name. Assume that it is a section

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

Example of constructing an arithmetic expression: An arithmetic expression may be proceeded by a + or - sign. These operations are known as unary + or unary - operators. Il