BookmarkSubscribeRSS Feed
joon1
Quartz | Level 8

Dear Madam/Sir,

My goal is to have unique control firms (gvkey2) in a particular year that match between gvkey/merge_year in dataset1 and gvkey1/year in dataset 2. It could be multiple control firms (gvkey2) matched with gvkey in dataset 1 (=gvkey1 in dataset2) in a particular year. I attach a part of dataset2 (the original file contains 8 million observations) and dataset1.

Any programming advice will be highly appreciated.

 

Thanks

Joon1

1 REPLY 1
HB
Barite | Level 11 HB
Barite | Level 11

Nobody is going to download those files and nobody (certainly not me) is going to understand or undertake your problem as written. 

 

A little bit more explanation, a working data step, an example of desired results, and things you've tried will g a long way toward helping someone help you.  

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 374 views
  • 0 likes
  • 2 in conversation