How To

How to Use COBOL

Contributor
By eHow Contributing Writer
(1 Ratings)

As a high level programming language, COBOL (Common Business Oriented Language) is one of the most widely used languages by computer programmers. Since its development in 1959, the compiler has undergone many modifications and improvements. It also includes object-oriented features. The following steps will show you how to use the features of COBOL.

Difficulty: Challenging
Instructions

Things You'll Need:

  • COBOL Linker

    Review the Program Specifications

  1. Step 1

    Read the program specification thoroughly. You need to understand what the software needs to do in order to solve the business problem the specification describes.

  2. Step 2

    Address all questions and concerns with the systems analyst. Find out the functional requirements in the program specification.

  3. Step 3

    Identify and resolve logic issues. These issues may cause the program to produce incorrect results.

  4. Code the Program

  5. Step 1

    Provide the program name, author and date written in the Identification Division of the program. Provide a paragraph that describes the input, output and function of the program.

  6. Step 2

    Describe the inputs and outputs of the program in the Environment Division of the program. Assign input files to input devices and output files to output devices.

  7. Step 3

    Name and define all variables the program will use in the Working-Storage Section of the program. Define record layouts for reports in this section if necessary.

  8. Step 4

    Write the code that solves the business problem. Be sure to follow the outline in the corresponding program specification.

  9. Compile the Program

  10. Step 1

    Run the program code through the compiler, It will check for syntax errors and produce an object module.

  11. Step 2

    Check the compiler listing for syntax error messages. Then correct any errors.

  12. Step 3

    Recompile the program. Wait to see the end result.

  13. Create the Executable

  14. Step 1

    Run the program through the linker. Doing this action combines the object module and all subroutine programs into an executable file.

  15. Step 2

    Check the link-editor listing for syntax error messages. Then correct any errors.

  16. Step 3

    Recompile the program. Then link-edit it.

Tips & Warnings
  • You must have a good understanding of computer programming principles.
  • You must have thorough knowledge of COBOL program structure and syntax.

Post a Comment

Post a Comment

eHow Article: How to Use COBOL

Have you done this? Click here to let us know.

I Did This

Related Ads

Computers
Alexia Petrakos,

Meet Alexia Petrakos eHow’s Computers Expert.

Copyright © 1999-2009 eHow, Inc. Use of this web site constitutes acceptance of the eHow Terms of Use and Privacy Policy.   en-US

eHow Computers
eHow_eHow Technology and Electronics