Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

read alternate key

Status
Not open for further replies.

Patten

Technical User
Joined
Aug 22, 2002
Messages
106
Location
BE
If I have defined an alternate key with duplicates on a file (so non unique values are allowed for this alternate key) and I do a read by use of this alternate key, it seems it does only read one record of the possible identical values for this alternate key.

Example
Key Alternate Key
1 A
2 A
3 B
4 B


read (first time): 1 -- A
read next : 3 -- B

It did skip 2 -- A: is this normal? And if so, how to read all the records without skipping the 2 -- A record?
 
COuld you show us your code, including all the IO statements for the file including OPEN, START and READ?

Tom Morrison
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top