× 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: Read subfile without clearing screen?
  • From: Jim Langston <jimlangston@xxxxxxxxxxxxxxxx>
  • Date: Wed, 27 Jun 2001 14:10:58 -0700
  • Organization: Pacer International

The current loop looks like this, with either read setting on
indicator 20 (F20) which toggles SelectSubFile

eval SelectSubFile = *Off
DoW NOT *IN03
  If *IN20
    SelectSubFile = NOT SelectSubFile
  EndIf
  Write SflHeader (from STR002FN)
  Write SflCtl    (From STR002FN)
  Write Str002FM  (Format S1)
  If SelectSubFile
    Read SflCtl (or Read Str002FN or ExFmt SflCtl)
  Else
    Read STR002FM
  EndIf
EndDo

Someone suggested RSTDSP and DFRWRT which I changed RSTDSP to *NO and
it actually worked, but then it broke it when I try to read STR002FM 
instead of STR002FN. Looking at that now.

Regards,

Jim Langston

Carel Teijgeler wrote:
> 
> Jim,
> 
> Where do you read the SflCtl record? If it is after testing  function key
> F20, that will be the problem I think.
> 
> I think you should combine all the reads in one place, like:
> 
> >   write SflHead (From Str002FN)
> >   write SflCtrl (From Str002FN)
> >   write Str002FM
> >   read Str002FM
>      read SflCtl
>      ....
>      test input
> 
> Hope this may help.
> 
> Regards,
> 
> Carel Teijgeler.
>
+---
| 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.