Problem solve Get help with specific problems with your technologies, process and projects.

Displaying a window without deleting the underlying display

I am having a problem displaying a window without deleting the underlying display. I never had a problem before. I am using the overlay keyword. I have tried on both records; only on the window it is still deleting the underlying display. I believe the problem is due to both records using DSPMOD. I removed DSPMOD from the window, bit it still deletes it. If I create a separate program to display the window, it all works OK. The problem is only when both records are in the same display file/program.
I would need more information about this -- I need to see your display file DDS. You should have no problems if you are using the WINDOW DDS keyword, and if your display file is created with RSTDSP(*YES). Here's an example of a window that pops up over the underlying format in the same display file:


      * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *         
     A          R D@CDEL                     TEXT('Confirm Delete window')       
     A                                       WINDOW(*DFT 1 26 +                 
     A                                              *NOMSGLIN)                   
     A                                  1  1'Press'                   COLOR(WHT) 
     A            D#CDEL         2       + 1 TEXT('Delete key')       COLOR(RED) 
     A                                   + 1'to confirm delete'       COLOR(WHT) 
      * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *         
As you can see, it's very simple. It also does not use OVERLAY or DSPMOD, because the WINDOW keyword makes the WSC handle that sort of thing for you.


The Best Web Links: tips, tutorials and more.

Visit the ITKnowledge Exchange and get answers to your developing questions fast.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.

Dig Deeper on iSeries COBOL programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.