Value Lookup

Reply
Established User
Posts: 1

Value Lookup

I need to look up 600 observations in a table which contains more than 7cr observations. By using merge and left join, the program excutes in more than 8 hours. Please help.

Super User
Posts: 6,935

Re: Value Lookup

Please post the code, using either the "little running man" or {i} buttons.

Also post the output of proc contents for your dataset

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Trusted Advisor
Posts: 1,372

Re: Value Lookup

How long are the common keys to make the lookup ?

How many variables are in the 600 lookup datasets? and how long are they?

Have you considered using a format to check matching, subseting matched observations and

do the merge on this subset only ?

 

 

 

Super User
Super User
Posts: 7,401

Re: Value Lookup

You have provided nothing which would help us answer your question - look at the guidance above the post button - post test data in the form of a datastep, show the code you have been trying (formatted and using the {i} code window), any logs which might be throwing any errors/warnings etc.  Is the data all in SAS or is there a database invovled?  

Ask a Question
Discussion stats
  • 3 replies
  • 154 views
  • 0 likes
  • 4 in conversation