Moto Absent Member.
Absent Member.
821 views

New - Need help

Jump to solution

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 

0 Likes
1 Solution

Accepted Solutions
Micro Focus Expert
Micro Focus Expert

RE: New - Need help

Jump to solution

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".

View solution in original post

0 Likes
3 Replies
Micro Focus Expert
Micro Focus Expert

RE: New - Need help

Jump to solution

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".

View solution in original post

0 Likes
Micro Focus Contributor
Micro Focus Contributor

RE: New - Need help

Jump to solution

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.

0 Likes
Moto Absent Member.
Absent Member.

RE: New - Need help

Jump to solution

Thank you Dan that worked perfectly.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.