Switch in COBOL
Our first program will demonstrate the use of Switch statements that express conditionals across many branches.
Here’s a basic switch
.
To run the program, compile it using a COBOL compiler and then execute the binary.
Now that we can run and build basic COBOL programs, let’s learn more about the language.