Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


Running programs

To run a COBOL program, set environment variables, run the program, and correct any runtime errors.

  1. Make sure that any needed environment variables are set.

    For example, if the program uses an environment variable name to assign a value to a system file-name, set that environment variable.

  2. Run the program: At the command line, either enter the name of the executable module or run a command file that invokes that module.

    For example, if the command cob2 alpha.cbl beta.cbl is successful, you can run the program by entering alpha.

  3. Correct runtime errors.

    For example, you can use the debugger to examine the program state at the time of the errors.

Tip: If runtime messages are abbreviated or incomplete, the environment variables LANG or NLSPATH or both might be incorrectly set.

related tasks
Setting environment variables
Setting environment variables for COBOL for Windows
Using the debugger

related references
Runtime environment variables
Appendix I. Runtime messages


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)