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


  • Subject: Re: Internal Display file overlay
  • From: "Peter Dow" <pcdow@xxxxxxxxx>
  • Date: Fri, 15 Jun 2001 10:52:20 -0700

Hi Scott,

An alternative to the FRCDTA DDS keyword is DFRWRT(*NO) on the CRTDSPF
command.  Pretty  much the same effect, but applied to all formats afaik.

Regards,
Peter Dow
Dow Software Services, Inc.
909 425-0194 voice
909 425-0196 fax

----- Original Message -----
From: "Scott Klement" <klemscot@klements.com>
To: <RPG400-L@midrange.com>
Sent: Friday, June 15, 2001 10:21 AM
Subject: Re: Internal Display file overlay


>
> Normally, OS/400 waits until you do an input operation from the screen
> before it actually displays the screen to the user.  The idea is that
> if you're going to output multiple times, it's more efficient to do all
> the output into a buffer, and then dump the buffer to the terminal once.
>
> The FRCDTA DDS keyword is used to override this behavior.  When using
> FRCDTA, every time you do a write operation to your display file, the
> screen will appear for the user.   This is assuming, of course, that
> you used DDS to create your screen...  The only other method of making
> display files that I can think of is via the Sys/36 environment, and
> I'm not entirely sure how you'd do a "FRCDTA" in that situation.
>
> Then, in your RPG program, you need to do an output operation to the
> display when you want it to show up.   As you pointed out, you can't
> use the WRITE operation unless you also pass a data structure that
> displays the fields to be displayed.   The other alternative, is to
> use EXCPT, and create output specs for your display -- that would be
> the traditional way of working with a "program described" file.
>
> HTH
>
>
> On Fri, 15 Jun 2001, Jim Langston wrote:
>
> > Short version:
> > How do I display a record format described internal to the program
> > to the display without waiting for user input before continuing?
> >
> > Long Version:
> > I'm modifying an existing program that uses an internally described
> > display file processed by the cycle.  What I am doing, or attempting
> > to do, is stick a sub file in the middle of this.
> >
> > Well, in testing I got this to work fine.  I copied the display file
> > record into 2 records, chopped out a portion that I'm going to stuff
> > my sub file into.  It works great in my test program, I display the
> > subfile (by WRITEing it) which has KEEP specified.  Then I let the
> > cycle take care of the internally described file (which has OVERLAY
> > defined) and it's doing what I want.
> >
> > But, running into a snag when I am moving it to development.  If the
> > user doesn't want the display file to be shown, I have to show the
> > original info there that was copied into another record format.
> >
> > I've tried using WRITE but RPG complains that I need a Data Structure
> > to write, which I don't want to do.  So I tried READ which works, after
> > a fashion.  It will display the display file record on the screen, but
> > then waits for an ENTER before it continues with the cycle, that just
> > ain't gonna work.
> >
> > Changing the display file to externally described is not an option in
> > this case.
> >
> > Regards,
> >
> > Jim Langston
> >
>
> +---
> | This is the RPG/400 Mailing List!
> | To submit a new message, send your mail to RPG400-L@midrange.com.
> | To subscribe to this list send email to RPG400-L-SUB@midrange.com.
> | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
> | Questions should be directed to the list owner/operator:
david@midrange.com
> +---


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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 ...

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.