call multiple screens in one procedure sequentially

kasundha

Member
I wrote a code (.P file) to run two different screens(.W files) sequentially. after closing the first screen, program quit the execution without running the second program. do you have any experience regarding this...?

RUN MIS6I.w.
RUN MIS2-MARKETING.w.
 

RealHeavyDude

Well-Known Member
You need to run them persistent. Depending on how it was it coded it will wait-for or just execute the main block and stay in memory. If you created the windows in the good ole AppBuilder it will automatically contain the necessary code - have a look into the main block.

Have a look at the persistent set handle option on the run statement.
 

andre42

Member
If the first .w program returns an error, error handling will kick in and the second .w program won't be run.
You could try the debugger, or just output a message between the two run statements.
You could also run the first program with no-error and check the error status.
 
Top