Nov 07

The format COBOL source programs using the COBOL reference format. Enter the line number, COBOL statement and procedure name in the positions stipulated in the reference format.

Enter the line number, COBOL statement, and procedure identifier in the edit screen, as shown in the following example.

  • Sequence number area (columns 1 to 6)

Specify the line number in the sequence number area. The line number can be omitted.

  • Indicator area (column 7)

Use the indicator area when continuing a line or to change a line to a comment line. In all other cases, be sure to enter a space.

  • Area A (columns 8 to 11)

Normally, COBOL divisions, sections, paragraphs and end program headers are described in this area. Data items whose level-number is 77 or 01 are also described in this area.

  • Area B (column 12 and on)

Normally, COBOL statements, comment-entries and data items whose level-number is not 77 or 01 are described in this area.

  • Line feed character (end of line)

Enter a line feed character at the end of each line.

  • TAB character

A TAB character can be specified as the nonnumeric literal in a COBOL source program. The TAB character takes up 1 byte within the non-numeric literal.

Alomohora - COBOL - Source Code Format

After creating and editing the source program, store the program in a file. Normally, you affix the extension COB or CBL to the name of the file.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Technorati
  • Twitter

Related Posts:

  1. WordPress RSS Summary or RSS Full Feed
  2. Beautifying Code in Visual Studio
  3. COBOL Enviroment Division
  4. COBOL Identification Division
  5. COBOL Hello World!

Leave a Reply