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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COBOL search sorted text file

Status
Not open for further replies.

phed

Programmer
Dec 12, 2019
1
US
I have a sorted text, the first 12 characters is sorted as the key. This file may contain thousands of lines.
I read another file to get keys, I would like to know what is the quickest method to get the matching line from the sorted text file.
 
Have both datasets in the same sort order - it is a simple 2-file match. Or convert the big dataset to VSAM or a database.
But you don't say what your environment is.


Nic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top