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



I had the same thought. I used the SLN technique awhile back to relay to
the user the last four [4] items entered on an order. But I did not read
(may have missed it) where there was a specific (max.) number of lines. So
if there is, after headers and footers, room for twenty [20] lines, would
happens on the twenty-first [21]? In my example, I just rolled up the lines
as they had served their purpose.

And I have been trying to figure out Why. I concede that Booth is a better
programmer than I, but it seems to be defeating the purpose of the subfile
concept. As a corollary to that, how does the user know When the subfile is
complete? The usual goal is to get the info to the user as quickly as
possible, not to have them sitting and waiting; i.e., sub-second response
time. I just have no imagination.

Jerry C. Adams
There are two types of people. (1) Those who can extrapolate from incomplete
data.
IBM i Programmer/Analyst
--
NMM&D
615-832-2730

-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of
mlazarus
Sent: Sunday, July 14, 2019 9:25 AM
To: RPG programming on IBM i
Subject: Re: pausing a subfile

Booth,

Is this for an "output only" application? Maybe the old SLN technique
would work better, instead of a subfile.

-mark

On 7/12/2019 10:05 PM, Don Brown wrote:
The method to do this requires the record format(s) to have the INVITE
keyword in effect.

Then you need to either change or override the display file with the
WAITRCD setting the required delay. Value is in seconds so you could
set this to 1 if you really wanted to.

In the program use the WRITE and READ instead of the EXFMT.

Code the File information DS for the Display file and include the
*STATUS option; Eg (Sorry old program and not free format)

F INFDS(INFDSA)

Workstation file information DS

D INFDSA DS
D DSPFIA *FILE
D STSFIA *STATUS

When you issue the READ include an error indicator which will be set
on if the WAITRCD time expires, test the STSFIA for a value of 01331
to confirm this is a time-out and then modify the subfile and re-display
it.

Cheers


Don Brown




From: "Jon Paris"<jon.paris@xxxxxxxxxxxxxx>
To: "RPG programming on IBM i"<rpg400-l@xxxxxxxxxxxxxxxxxx>
Date: 12/07/2019 10:46 PM
Subject: Re: pausing a subfile
Sent by: "RPG400-L"<rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>



If you want that degree of sophistication in a green screen interface
then you need to use something like the DSM APIs so that you control
the display rather than Workstation Data Management controlling when
the data is sent to the device.

As has been noted a regular subfile is only updated when the control
record is displayed.

Frankly Booth you are trying to do something that 5250 terminals were
never really designed to do.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com


On Jul 11, 2019, at 10:01 PM, Booth Martin<booth@xxxxxxxxxxxx> wrote:

This seemed simple enough but it has me stumped.

I am adding lines to a subfile. I want the user to see each line as
it

is added, using sleep() instead of exfmt. (Thank you for the links on
that earlier. Works great.)

Writing the new subfile record and then writing the control record
and

sleep(1) seemed like the right choice. It apparently isn't. Any ideas?


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

Please contact support@xxxxxxxxxxxx for any subscription related questions.

Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.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.