× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Uummm. After a bit more testing, seems like it will work as long as the
KEEP keyword is on the very first record format of window2 program
display file. Below is IBM doc on KEEP (Couldn't quite understand the
3rd paragraph where it talks about KEEP keyword on uppermost record)


--IBM Doc on KEEP
---------------------------------------------------------------
KEEP (Keep) keyword for display files
Use this record-level keyword to keep the display from being deleted
when the display file is closed.

The entire display is kept if any of the records on the display have
KEEP specified. The default causes the entire display to be deleted when
the file is closed.

In addition, the name of the first, uppermost record on the display that
has the KEEP attribute is saved by the i5/OS(tm) operating system for
possible use by subsequent programs. The name kept can be used by a
subsequent program that does not specify a record name on its first
input operation. This keyword enables you to leave data on the display
for review after your program ends, or use that data as input for
subsequent programs.

This keyword has no parameters.

This keyword cannot be specified with the following keywords:
ALWROL
CLRL
SLNO

A warning message appears at file creation time if the KEEP keyword is
specified on a record with the DSPMOD keyword. At run time, the KEEP
keyword is ignored when the display mode changes.

Option and response indicators are not valid for this keyword.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Wednesday, April 09, 2008 1:05 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: window display clearing display first

I'm assuming NOCLEAR and SCR1 record formats in your example below
belongs to display file of window2 program.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Wednesday, April 09, 2008 12:52 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: window display clearing display first

Try add KEEP keyword to both the NOCLEAR and SCR1 record formats.



-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of
JDHorn@xxxxxxxxxxxxxx
Sent: Tuesday, April 08, 2008 4:55 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: window display clearing display first

I have an issue with a window clearing the display

old oe system calls window1

window1 requests fax info
calls window2 to find customer fax numbers
returns to window1 with lr on
calls window3 to display error message
when window3 displays, it first clears the display

if I return from window3 and call another window program the display
is
still cleared.

the background will not return until window1 is redisplayed

if window2 does not turn on LR, everything works just fine.

all of the display files have records with assume and keep keywords
in
them.

all the record formats displayed use the overlay keyword.

I tested this in a number of different ways and it seems to be a
universal
truth.

Is this normal behavior? Is there a way to make this work with LR
on?

typical beginning of a screen member

R NOCLEAR TEXT('Prevent Initial Clear')

ASSUME

OVERLAY

1 2'X'

R NOERASE TEXT('Prevent Screen Erase')

KEEP

R SCR1

WINDOW(3 4 20 72)

OVERLAY

RTNCSRLOC(&XXRCD &XXFLD )

MOUBTN(*ULD
CF24)

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

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

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


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.