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



READ just reads the next record from wherever the file pointer is. You need something like SETLL or CHAIN to position that pointer if you want to read a particular record of interest.
--
Sean Porterfield


-----Original Message-----
From: William Howie
Sent: Wednesday, August 22, 2012 09:20
To: rpg400-l@xxxxxxxxxxxx
Subject: Keyed file question

Hello all...........

This probably seems like a silly question, but oh well, here goes. I have a file that is defined as a keyed file, both in the DDS and within the program that I am working on. I am loading data into this file that won't necessarily be in the same keyed sequence as the file definition is. Then within the program I just use a READ statement to loop through it, not any sort of a SETLL and READE scenario. Here's the question: the file will still get read in the keyed sequence specified in the file definition, correct? In other words, I should lose any sort of different sorting order the data might have been loaded into the file with simply because the file is keyed........right?

I only ask this because it seems to be behaving differently from that. Thanks in advance!

Bill Howie
Software Developer
AmTrust North America


This email is confidential, intended only for the named recipient(s) above and may contain information that is privileged. If you have received this message in error or are not the named recipient(s), please notify the sender immediately and delete this email message from your computer as any and all unauthorized distribution or use of this message is strictly prohibited. Thank you.

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.