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

Example of add verb, Example of add verb: (a) ADD A TO B. This illu...

Example of add verb: (a) ADD A TO B. This illustration represents that the value of A will be added to the value of B and the result will be stored in B.  The alignment of

Fd entry for variable-length records, FD Entry for variable-length Records:...

FD Entry for variable-length Records: The RECORDS CONTAINS and BLOCK CONTAINS clause are quite dissimilar in the case of files with variable- length records. The syntax of the

Example of constructing an arithmetic expression, Example of constructing a...

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

Program for indexed sequential file creation-mode, PROGRAM FOR INDEXED SEQU...

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION (RANDOM MODE): We have to write a program to create an Indexed Sequential File in random mode for Student particulars. Suppose jus

Illustration of the abbreviation - compound condition, Illustration of the ...

Illustration of the abbreviation: A few illustration of the abbreviation are given below: Illustration: The compound condition  AMOUNT GREATER THAN 499 AND AMOUNT L

Evaluate statemant, single program how may when statement has used

single program how may when statement has used

IMS, Can u please let me know how can i use SSA''s in IMS while fetching se...

Can u please let me know how can i use SSA''s in IMS while fetching segments. Thanks, Rajesh

Buffers - file characteristics, Buffers: The Modern computers are able...

Buffers: The Modern computers are able of handling I-O operations independent of the CPU by means of the hardware termed as data channel. For illustration, if two buffers a

Numeric literals - cobol program, Numeric -   Literals : The numeri...

Numeric -   Literals : The numeric literal can be created with the help of digits only. It can have a sign (+ or -) and can also have a decimal point. If no sign is specifi

The LENDER Bank, The LENDER Bank offers mortgages on homes valued up to $50...

The LENDER Bank offers mortgages on homes valued up to $500,000. The required down payment is calculated as follows: 4% of the first $60,000 borrowed 8% of the next $30,000 borro

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