The problem is that the base screen is cleared after pgm1 ends - and I
don't know why and can't seem to prevent it.
I've tried mucking around with usrrstdsp in various places without success.
Adding a KEEP to the window sfl in pgm1 helps a bit, but I have both the
base screen and the pgm1 windows visible & overlayed by the pgm2 window.
What I want is the pgm2 window to simply overlay the original base screen.
What am I missing here?
"Drew Dekreon" <drew_dekreonATchugachelectricDOTcom> wrote in message
news:10d1412...@corp.supernews.com...
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.705 / Virus Database: 461 - Release Date: 12/06/2004
STRPDM -> DDS sources.
Usually you edit with option 17 and create during saving the file.
Do this instead: Save without create. Then option 14 F4 F9 thirs
parameter RSTDSP=*YES.
This is needed when you call from inside a program another one with
another display and then come back to the first pgm.
But actually I don't know if this works for your CL where pgm1 is
finished and then pgm2 starts. So I see nothing that makes the screen
display of pgm1 appear again after pgm2 is finished.
Walter
Another option is to combine pgm1 and pgm2 record formats into one display
file. Use share(*yes) with the new display file so the open is shared
between pgm1 and pgm2. Now the pgm2 window can RMVWDW the pgm1 window.
"Drew Dekreon" <drew_dekreonATchugachelectricDOTcom> wrote in message
news:10d1412...@corp.supernews.com...
(tried adding rstdsp to pgm2 as well - I'm down to random trials now -
made no difference)
The only thing that comes close is using KEEP on the window ctl. At
least I don't end up with a blank screen with window sitting in the
middle of it.
As long as you are using RSTDSP in any display file that is overlain
then this should do the trick
"Drew Dekreon" <drew_dekreonATchugachelectricDOTcom> wrote in message
news:10d6ser...@corp.supernews.com...
The really odd thing about all this is that the CL originally just
called PGM2 and everything worked fine: the window overlaid whatever was
on the screen and the screen was restored when it finished.
I simply added a called to PGM1 before PGM2 in the CL.
If I call either pgm1 or 2 directly from the command line it correctly
overlays the current display and restores it. The problem only comes up
when the CL calls them in succession.
A*=== PREVKEEP ==================================================
A* WRITE this format just before the display file is closed to
A* avoid erasing the underlying dispay in some cases while
A* processing through a subfile.
A R PREVKEEP CLRL(*NO)
A FRCDTA
A OVERLAY
I got this from a coworker, who got it from a previous job, so neither of us
claim rights to it. At the time I did it, I looked at the keywords and I
think I figured out why it worked. Now, without looking at the keyswords, I
not sure I understand it.
Sam
"Drew Dekreon" <drew_dekreonATchugachelectricDOTcom> wrote in message
news:10d6tlb...@corp.supernews.com...