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

Advice on How to Stop Searching Inpu File After Search Criteria Met

Status
Not open for further replies.

ks01

MIS
Aug 11, 2002
110
US
Hello - I would like to ask for advice on how to accomplish a task.

I have a file that lists account numbers in sequential order. There are approximately 70,000,000 records in this file and it is produced weekly. I often receive requests to fetch account numbers where I know what the first six digits of the account number are. I will often receive requests for multiple criteria (e.g. list all accounts where the first six digits is equal to 123456, 234567, 345678, etc…).

Since I know the account numbers are listed in numeric order, once all the criteria has been searched (123456, 234567, 345678, etc…), how to I tell SAS to stop searching the rest of the file? Using the provided example, once the account numbers start with 345679, I no longer need to continue searching the current file and can move on to the next input file.

Anyone have any suggestions?

Thanks!
 
Hi Klaz ... thank you for the suggestion. I am not familiar with those statements, I will look in to them.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top