You have now learned how to perform the main task which Studio Enterprise Edition for UNIX facilitates - create, test, and run a program.
This part of the tutorial shows you how to use Compiler directives to change the syntax allowed by the Compiler, and the output it produces.
Compiler directives enable you to control the way in which your source code is compiled.
Load the Development Environment by using the sde command, and load the file tictac.cbl into the COBOL Editor as before.
To set the Compiler directives:
This causes the source code to be listed on the screen, with any error messages.
osvs flag(osvs) list()
Ensure that the bottom part of your display looks like the image below.
The final directive, LIST, means you want the source listing that the Compiler produces sent to a file. The parentheses mean you want to use the default name, which is your program name with an extension of .lst, so this creates tictac.lst.
Some messages are displayed, too quickly for you to read. With this indication that there could be something wrong, you can load the listing file you have created (tictac.lst) into the COBOL Editor at some future time to see what they are. In fact, the messages are indicating the lines of code that do not conform to OSVS syntax. These are not errors that prevent the creation of usable code, so you can go on to use Animator with the code again.
There are many different directives available, and this is just one way of setting them.