Format for cobol programs, COBOL Programming

Assignment Help:

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


Related Discussions:- Format for cobol programs

#verbs, Display control verbs in Cobol

Display control verbs in Cobol

Sequential files with the variable-length records, SEQUENTIAL FILES WITH TH...

SEQUENTIAL FILES WITH THE VARIABLE-LENGTH RECORDS: The Magnetic - tape or disk files can hold variable-length records. In this situation the file can have records with various

Value clause - cobol programming, VALUE CLAUSE: The value clause defin...

VALUE CLAUSE: The value clause defines the preliminary value of the data item. Normally initialization will be completed just before the first statement in the procedure di

Close statement, CLOSE STATEMENT: When the processing of a file is com...

CLOSE STATEMENT: When the processing of a file is completed, then the file may be closed. This is completed with the help of the CLOSE-verb. The form of the CLOSE statement is

Giving file-name - simple merge verb, GIVING    file-name-5. The input...

GIVING    file-name-5. The input files to be merged through the MERGE statements which are specified in the USING phrase. These files should be sequential files and should be

Example of open statement, Example of Open statement: Illustration: ...

Example of Open statement: Illustration: The OPEN INPUT TRANSACTION, OLD-MASTER OUTPUT NEW-MASTER. The illustration represents that there are two input files named the

Rules of renames clause, RULES OF RENAMES CLAUSE:   The rules below s...

RULES OF RENAMES CLAUSE:   The rules below should be observed while using the RENAMES clause: (i) All RENAMES entries should be written only after the last record descript

File-control paragraph for the relative files, FILE-CONTROL paragraph for t...

FILE-CONTROL paragraph for the relative files: The normal format for the SELECT clause for a relative file is as shown below. SELECT  file-name  ASSIGN  TO  implementor-nam

DBMS, Comparing features of oracle rdbms with Mysql

Comparing features of oracle rdbms with Mysql

Program for screen section, PROGRAM FOR SCREEN SECTION:  identificatio...

PROGRAM FOR SCREEN SECTION:  identification division.   program- id.   environment division.   data division.   working-storage section.   01  a pic 9(2) value

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd