Skip to main content

I just installed visual cobol for eclipse on windows and everything is running smooth. Im just trying to make a simple Hello world app that just displays Hello World in a console window. Every time i run the code, the console flashes open and exits immediately. Am I doing something wrong or is there to stop this?

Thanks in advance,

Kyle 

I just installed visual cobol for eclipse on windows and everything is running smooth. Im just trying to make a simple Hello world app that just displays Hello World in a console window. Every time i run the code, the console flashes open and exits immediately. Am I doing something wrong or is there to stop this?

Thanks in advance,

Kyle 

As soon as the program finishes, the output window closes.  To make the output window persist, try putting a "stop" statement as the last line in the program.   Example:

        display "Hello World".
        stop "Now stopped.  Press Enter to release the stop".

I just installed visual cobol for eclipse on windows and everything is running smooth. Im just trying to make a simple Hello world app that just displays Hello World in a console window. Every time i run the code, the console flashes open and exits immediately. Am I doing something wrong or is there to stop this?

Thanks in advance,

Kyle 

Starting with the upcoming release 2.2, the "stop" statement will no longer be needed in such a situation. The output window will wait user to press a key before end of execution and hiding the window.


I just installed visual cobol for eclipse on windows and everything is running smooth. Im just trying to make a simple Hello world app that just displays Hello World in a console window. Every time i run the code, the console flashes open and exits immediately. Am I doing something wrong or is there to stop this?

Thanks in advance,

Kyle 

Thank you Dan that worked perfectly.


I just installed visual cobol for eclipse on windows and everything is running smooth. Im just trying to make a simple Hello world app that just displays Hello World in a console window. Every time i run the code, the console flashes open and exits immediately. Am I doing something wrong or is there to stop this?

Thanks in advance,

Kyle 

Thank you Dan that worked perfectly.


I just installed visual cobol for eclipse on windows and everything is running smooth. Im just trying to make a simple Hello world app that just displays Hello World in a console window. Every time i run the code, the console flashes open and exits immediately. Am I doing something wrong or is there to stop this?

Thanks in advance,

Kyle 

Thank you Dan that worked perfectly.