Skip to main content

Problem:

Dialog System:

The DISPLAYs in my GUI Dialog System COBOL program do not appear when I use an EXE build.

Resolution:

In Net Express, the default linking builds a graphically EXE, where DISPLAYs are suppressed as long as there is no open console / command prompt for this application.

There are two possibilities to get a console for the DISPLAYs.

Either:

---------------------------------

Add the statement:

   ACCEPT dummy WITH TIMEOUT 0

in front of the first DISPLAY.

Any ACCEPT, which expects input from a console, will induce the RTS to open one.

And subsequent DISPLAYs will occur.

"WITH TIMEOUT 0" does not wait for the input and returns immediately.

The console only occurs if necessary.

Please define "dummy" in the WORKING-STORAGE SECTION, e.g.

01 dummy PIC X.

---------------------------------

Or:

---------------------------------

You may change the default graphical link to a character mode link.

Right-click on the EXE and choose "Build Settings...".

Select the tab Link and choose "Character" as "Interface type".

The console will occur immediately after starting the program.

---------------------------------

Old KB# 3842