I have HEADER, DETAILS & FOOTER screen, where DETAILS & FOOTER screen are set overlay.
My pgm as below:
WRITE HEADER
WRITE FOOTER
EXFMT DETAILS
DOW NOT *IN03
EXFMT DETAILS
ENDDO
When i debug the pgm, only the 1st time i call the pgm i can see all 3 screen,but not 2nd times onwards. I was wondering how to display the overlay screen during debug. Is KEEP or ASSUME helps?
Thank you.
Software/Hardware used:
ASKED:
January 26, 2010 12:02 PM
UPDATED:
January 31, 2010 8:23 AM
Hi there Esteh400,
Would you mind providing a little more information? What system are you using?
Thanks,
Jenny
Community Manager
This would be as/400 rpg or RPGLE
Need to know
is it RPG or RPGLE, what debugger are you using? Is it through Green Screen? Client Access? When you say the second call, are you ending the program and calling it from the same session or do you mean the second time the exfmt command is run in a sincle run of the program?
Phil
Haven’t experienced that, and I don’t use keep or asume.
It’s pretty clear that the system is an AS/400 or a successor; the sample programming is RPG IV. And DDS display files aren’t used anywhere else. Still, the amount of info is too small.
At least two more elements are needed.
First, we can’t guess what the DDS is like for the FOOTER and DETAIL records. Nor do we have any info on what parameters were used to create the DSPF. (RSTDSP(*NO)? DFRWRT(*YES)?)
Second, as Phil noted, the meaning of “not 2nd times onwards” has multiple possibilities. Any interpretation has to take into account all the variations in DDS and creation.
I’ll add another item to the list — debug. Does the question mean that the missing FOOTER happens during a debug session? If so, then the whole meaning of the question changes. Debug of a display problem should always be done after OVRDSPF DEV(<2nd-session>) so that the display file isn’t interfered with by debug displays.
Tom