Introduction to Run-time Switches

You can control the behavior of a program by setting run-time switches. For example, there is a switch to hide trailing spaces in DISPLAY ... UPON CONSOLE statements, and a switch to direct error messages to a log file or the console.

Most switches affect specific COBOL features and are available through the IDE (for example in project properties). Some switches are also available for you to define and use in your program; these are called COBOL programmable switches.

You can specify switches in the IDE (such as in project properties), at the command line and in the environment variables COBSW and OOSW (for switches for object-oriented programs).

関連項目