HP3000-L Archives

November 1999, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Reply To:
Date:
Thu, 4 Nov 1999 23:49:16 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (22 lines)
I just bail the loop if the returned record's key value no longer
matches the search value.

Eben Yong wrote:
>
> I am trying to set up a COBOL program that reads records in a KSAMXL file
> based on an exact match to a key value.  The file can contain multiple
> records based on the key value.  I only want to read those records that
> match the key value exactly.  I have been able to successfully find and read
> the first record using FREADBYKEY and FFINDBYKEY+FREAD, but then subsequent
> FREADs will take the rest of the KSAMXL file until it hits EOF.  How do I
> limit the FREAD so that it only reads the qualifying logical records (based
> on the key value)?  If someone could provide the intrinsic sequence and
> logic I can figure out the programming details.  Thank you for your
> assistance.
>
> Eben Yong
> MIS Manager
> Health Plan of San Mateo
> 650-616-2010
> [log in to unmask]

ATOM RSS1 RSS2