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
START STATEMENT: The START statement places the files to the initial logical record whose record key satisfies the condition specified by the KEY phrase. The access mode shoul

Example of If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

Configuration Section: This section holds an overall specification of the computer used for the purpose of the compilation and execution of the program. There are in all 3 par

File Description for the Relative and Indexed Files: The FD entry for a relative or an indexed file is similar to that of a sequential file. Some compilers do not permit varia

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a

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

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

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.

Program for Sequential File Creation & Rewriting  We have to write a program to create a Length file with just two fields: l (Length) and l-c (Length-Code). Add a few records.

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