Thanks Simon

That worked perfectly!!!

-----Original Message-----
From: cobol400-l-bounces@xxxxxxxxxxxx
[mailto:cobol400-l-bounces@xxxxxxxxxxxx] On Behalf Of
cobol400-l@xxxxxxxxxxxx
Sent: Friday, April 01, 2005 8:23 PM
To: COBOL Programming on the iSeries/AS400
Subject: Re: [COBOL400-L] "windows" using separate display files


On 02/04/2005, at 6:19 AM, cobol400-l@xxxxxxxxxxxx wrote:

> Is it possible to have a separate display file "window" overtop of 
> another.
> I've built a separate PGM / DSPF (window) to be called from various
> applications.  I would like it to "overlay" the existing screen without
> clearing the entire screen.
>
> Can someone point me in the right direction

Add this piece of magic to your display file DDS:

     A          R DUMMY
     A                                      ASSUME
     A                                  1  2'Nosferatu'

Your application does not read or write this record format. Its mere 
presence changes the behaviour of the display file and tells OS/400 to 
assume (more properly presume but I digress) that the record is already 
on the display when the file is opened thus  has the effect of not 
clearing the screen.

Note that the screen can still be cleared when a record format is 
written. To stop that you must also specify OVERLAY on the record 
format you are writing. If you are using the WINDOW keyword then it 
effectively behaves as if OVERLAY was specified.

ASSUME is normally used with KEEP (in another display file) but it has 
the pleasing side-effect of making windows display smoothly.

Regards,
Simon Coulter.
--------------------------------------------------------------------
    FlyByNight Software         AS/400 Technical Specialists

    http://www.flybynight.com.au/
    Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
    Fax:   +61 3 9419 0175                                   \ /
                                                              X
                  ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------


_______________________________________________
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/cobol400-l.

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.