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



Yep, removing the parenthesis did the trick!
 
I guess I was thinking about key lists and how they are always in 
parenthesis... I guess I can see a consistency if there is only a single 
element in the key.
 
Using *HIVAL was my choice, but I had it in parens also...  Also learned that I 
can use *END to get to the last record.
 
Thanks alot, guys.
 
William


date: Sat, 28 Feb 2004 21:58:51 -0600 (CST)
from: Scott Klement 
subject: Re: Externally-defined, arrival-sequence file - getting to
the last record


Have you tried removing the parenthesis?

In other words, do:

CHAIN rrn Filename;

instead of

CHAIN (rrn) Filename;

That would be my first guess, anyway.

On Sat, 28 Feb 2004, William Washington III wrote:
>
> How does one get to the last record of an externally-defined, 
> arrival-sequence (i.e., no keys) file without reading thru every record? I 
> want to start the program, then immediately hit the end-of-file, then wait 
> for a new record to appear. (I know about overriding the file with 
> EOFDLY(nnn) for this to work.)
>
> I added the RECNO(rrn) keyword to the file definition, set rrn=*hival and 
> tried using
>
> CHAIN (rrn) Filename and
> SETGT (rrn) Filename.
>
> I keep getting compile error messages saying "key field list not allowed with 
> program described file".
>
> I have the file defined as an input, full procedural, externally-described 
> disk file with a blank record address type and a RECNO keyword. To me, that 
> makes this a file to be processed by relative record number.
>
> Where am I going wrong????? Ideas??? (I haven't had to deal with relative 
> record number processing outside of subfiles since my S/34 Mapics days fresh 
> out of school!)
>
> Many thanks in advance,
>
> William

As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.