• Subject: Re: overlay question
  • From: "Scott Swaim" <scott@xxxxxxxxxxxxxxxx>
  • Date: Wed, 7 Oct 1998 13:55:17 -0500

Let me make sure I understand what you are asking.

You have a display file with more than one record format. (i.e. screen1,
screen2, screen3).  You want to write the formats to the display station and
overlay them on top of each other.

If the above is what you are asking here is what you need to do.

The Overlay Keyword in the DDS tells the program not to erase the display
when a new format is written to the display.  This allows a display to be
created with for example a header screen, a detail screen, and a footer
screen.  To do this you would need to set the Overlay keyword in each of the
record formats in you DDS.  In you RPG program you would then WRITE
SCREEN1, WRITE  SCREEN2,  EXFMT  SCREEN3.


DDS:


A                 R     SCREEN1
A                                                            OVERLAY
A (Insert screen fields here)
A                  R     SCREEN2
A                                                             OVERLAY
A (Insert screen fields here)
A                  R      SCREEN3
A                                                              OVERLAY
A (Insert screen fields here)



RPG


C (Insert calc specs here)
C                         WRITE      SCREEN1
C                         WRITE      SCREEN2
C                         EXFMT     SCREEN3
C (Insert rest of program here)

Scott Swaim
scott@qualitycorps.com

(The opinions expressed are not necessarily those of my employer,
unless they are correct.  They would like as much credit as possible.)


-----Original Message-----
From: mohammad khan <mohammadakhan@yahoo.com>
To: MIDRANGE-L@midrange.com <MIDRANGE-L@midrange.com>; RPG400-L@midrange.com
<RPG400-L@midrange.com>
Date: Wednesday, October 07, 1998 1:40 PM
Subject: overlay question


>hi,
>
>i have a question about overlaying 3 records in a dspf.
>
>how do you specify which records ought to be overlaid. i mean, in an
>rpg pgm. (which i must write) how do you tell the pgm to overlay rec1
>w/rec2 at this point in the pgm and rec3 w/rec4 at another point, so
>on and so forth...?
>
>an indespensable link was given to me yesterday at
>
>http://publib.boulder.ibm.com:80/cgi-bin/bookmgr/BOOKS
>
>but i still need to know.
>
>i mean, when you add the overlay kywd. to a rec. in a dspf. (that
>works w/other recs. in the same dspf) is it necessary to specify the
>overlay kywd. with the other recs. if you don't want them to be erased
>when they work with the other recs.?
>
>i hope i haven't confused you w/my wording.
>
>sincerely,
>
>Mohammad
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>+---
>| This is the Midrange System Mailing List!
>| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
>| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
>| To unsubscribe from this list send email to
MIDRANGE-L-UNSUB@midrange.com.
>| Questions should be directed to the list owner/operator:
david@midrange.com
>+---
>

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.