× 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.



That wasn't the issue, but you are right that OVERLAY isn't necessary, despite the note in the manual.

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


-----Winchester Terry <terry.winchester@xxxxxxxxxxxxxxx> wrote: -----
To: "'Midrange Systems Technical Discussion'" <midrange-l@xxxxxxxxxxxx>
From: Winchester Terry <terry.winchester@xxxxxxxxxxxxxxx>
Date: 03/06/2015 02:21PM
Subject: RE: [Bulk] How does ASSUME keyword work with DSPSIZ?

Did you try it without the OVERLAY keyword in the dummy record?

Terry


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On
Behalf Of Mark Murphy/STAR BASE Consulting Inc.
Sent: Friday, March 06, 2015 2:16 PM
To: Midrange Systems Technical Discussion
Subject: RE: [Bulk] How does ASSUME keyword work with DSPSIZ?

How is this materially different from what I said I am doing?

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx


-----Winchester Terry <terry.winchester@xxxxxxxxxxxxxxx> wrote: -----
To: "'Midrange Systems Technical Discussion'"
<midrange-l@xxxxxxxxxxxx>
From: Winchester Terry <terry.winchester@xxxxxxxxxxxxxxx>
Date: 03/06/2015 02:11PM
Subject: RE: [Bulk] How does ASSUME keyword work with DSPSIZ?

Mark,

I don't typically use those heywords either...instead I make sure
that all of my display files has a simple dummy record like this:

*---------------------------------------------------------------*
* Dummy record to allow the DEFER(*NO) option to work correctly *
* and prevent any overwrites to a screen underneath. *
*---------------------------------------------------------------*
R DUMMY
ASSUME
24 79' '

You don't even need to write this record...simply have it inside
of your display file when you compile it.

Terry


-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On
Behalf Of Mark S Waterbury
Sent: Friday, March 06, 2015 2:06 PM
To: Midrange Systems Technical Discussion
Subject: Re: [Bulk] How does ASSUME keyword work with DSPSIZ?

Hi, Mark:

First, you WRITE a "dummy" record format that has a blank
line, say at
line 24, with LOCK BLINK OVERLAY ASSUME

Then you EXFMT the record format that shows the "window" with
OVERLAY,
PROTECT PUTOVR and CLRL(*NO) ...

A;so, be sure to specify RSTDSP(*YES) on the CRTDSPF command.

If you are still "stuck", contact me "off-list" and perhaps I
can send
you a small example?

HTH,

Mark S. Waterbury

> On 3/6/2015 1:35 PM, Mark Murphy/STAR BASE Consulting Inc. wrote:
I have never used ASSUME or KEEP before, or not that I can
recall. So I am having some difficulties.

I have a display file that contains a window format that I
want to use as a common dialog. I want to be able to call the
program from other display programs, and have the common
dialog display on top of the current screen without the
display being blanked first. It seems to me that ASSUME would
fit the bill. The documentation says:

Specify the ASSUME keyword for at least one record format
within the display file so that the IBM i
operating system does not erase the display when the file
is opened. In addition, specify the OVERLAY
keyword with the ASSUME keyword to prevent the IBM i
operating system from deleting the display when
your program sends the first output operation after
opening the file.
and

For the IBM i operating system to process the data
correctly, your program must specify the record
format name containing this keyword.
Here is my assume record format.

A R ASSUME
A ASSUME
A OVERLAY
A 1 3' '

I am including it in the program, but I do not actually
perform any I/O operations to it. The terminology of that
second quote is a bit ambiguous as I am specifying it in the
program on the INCLUDE keyword, but not in an I/O operation.
Do I need to do an input or output to that record?

Another thing that would be throwing a wrench in the works
is the DSPSIZ keyword since this common dialog should work
with both *DS3 and *DS4 displays. I know that the screen is
cleared when the display mode changes, but the ASSUME keyword
should prevent that because:

A file with the ASSUME keyword will be opened to the
display size of the file with the KEEP keyword.
Coincidently, the file currently on the screen displays
only in *DS4 mode, and that file (different from the one
contain the common dialog) has a record with the KEEP keyword
on it, though once again I am not outputting the KEPFM
record. Do I need to?

A R KEPFM
A KEEP
A OVERLAY
A ERASE(HDRCTL1
-
A )

So displayfile A (has KEEP record in it) is on the screen,
I want to display a window from display file B (has ASSUME
record in it). Display file A has DSPSIZ(*DS4), display file
B has DSPSIZ(*DS3 *DS4). I am hoping for the window in
display file B to overlay the screen from display file A in
*DS4 mode, but instead when I display the window, the screen
is cleared, and the window displays in *DS3 mode. Obviously I
am missing something. Any ideas what that might be?

Mark Murphy
STAR BASE Consulting, Inc.
mmurphy@xxxxxxxxxxxxxxx

--
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


Confidentiality Notice: The preceding e-mail message
(including any attachments) contains information that may be
confidential, protected by applicable legal privileges, or
constitute non-public information. It is intended to be
conveyed only to the designated recipient(s). If you are not
an intended recipient of this message, please notify the
sender by replying to this message and then delete it from
your system. Use, dissemination, distribution or reproduction
of this message by unintended recipients is not authorized
and may be unlawful.

--
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion
(MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.


Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.


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.