Problem:
Is it possible to immediately begin animating a Dialog screenset while animating the COBOL program, to view how the screenset deals with the data passed to it from the program.
How is the environment established?
Opening up a screenset from within the project and setting a breakpoint on the first line, is an option.
However, a separate screenset is started with DSGRUN from within the COBOL program.
Resolution:
To break immediately into the Dialog System code by changing the call to Dialog System from DSGRUN to DS.
For example:
78 dialog-system VALUE "DS".
*78 dialog-system VALUE "DSGRUN". - i.e. comment out this line and replace it with the one above.
...
Call-Dialog-System SECTION.
CALL dialog-system USING Ds-Control-Block,
Data-Block.
IF NOT Ds-No-Error
Etc.