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
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

WRITE STATEMENT: The records are written to be logical place as determined from the value of the record key. The INVALID KEY condition occurs in the cases shown below: (i)

Example of Accept statement: For illustration, ACCEPT FLAG-A can be specified to read the value of the FLAG_A from the console. It may be keep in mind that no file definition

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

PROGRAM FOR DIVIDE VERB:   We have to write an easy program to elaborate DIVIDE verb. You can also use edit characters in the program. Identification division. Program-

Point Location: The position of the decimal point is the other characteristic which can be specified in the case of the numeric data items. If the position is not specified, t

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

COMPUTE VERB: The COMPUTE verb is very powerful. All the evaluations performed by the other 4 verbs can also be completed easily by using the COMPUTE verb. Its normal format i

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

ON SIZE ERROR OPTION:   If after an arithmetic expression, the result exceeds the highest value which can be accommodated in the result; this error is termed as size error. T