Column and field in cobol program, COBOL Programming

Column and Field in COBOL program:

In COBOL there are 2 types of entries termed as margin A and margin B entries. The Margin A entries start from the column 8, 9, 10 or 11 and margin B entries start from the column 12 or anywhere after 12.

An asterisk (*) in the column 7 specifies a comment line and the entry is not compiled to produce the object code. The Comment lines are actually some notes revealing the intentions of the programmer. As the compiler ignores them, anything can be included as comments. The Comment lines can appear anywhere after the first line of the COBOL program. The comment line can also be indicated by using the character slash ( / ) in the column 7. But in this case the comment line will be printed after causing a page ejection (that is, after skipping to the top of the next page).

 

Posted Date: 10/16/2012 3:22:30 AM | Location : United States







Related Discussions:- Column and field in cobol program, Assignment Help, Ask Question on Column and field in cobol program, Get Answer, Expert's Help, Column and field in cobol program Discussions

Write discussion on Column and field in cobol program
Your posts are moderated
Related Questions
How do I move a single QUOTE to a field or set the value clause? "''" does not work?

PROGRAM FOR CONDITION NAMES: We have to write a simple program to demonstrate Condition names usage.  identification division.   program- id.   environment division.

NESTED IF STATEMENT:   The then and else statement of an IF statement can hold other IF statements. The involved IF statements in their turn may also hold other IF statements

we have input file ,record layout is EMP ID (6 char) , EMP NAME (20 char), Designation (3 char),Salary (5 digit) Base Branch (10char) Grade (3 Alphanumeric). This is the input file

Rules for apply for the condition name: The rules below apply for the condition name. (i) The Condition names should be explained at level 88. The level number starts in ma

REDEFINES CLAUSE: At times it may be found that two or more storage regions defined in the DATA DIVISION are not in use concurrently. In such situations only one storage regio

READ STATEMENTS: The common format for the read statements is as shown bellow. Format 1: READ file-name RECORD [ INTO   identifier ] [  ;  AT   END     imperative-s

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

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

calculate simple interest