One way to do it after you have the data is using a dedup step using a sort:
Proc sort data=your dataset name nodupkeys;
By sic total_assets;
Run;
The other way would be by eliminating the duplicates within the process sql step like a "select distinct".
Hi PG,
I really appreciate following your codes. I am working on another project where I have to match on age (± 3), edu (±2), race, parity (0,≥1)
and date of blood sample. I was unable to enter date of blood sample variable correctly, however sample data (cases and controls) available. Can you guide me how to proceed on matching cases with controls (1 case with 2 controls)?
Thanks
Abdul
Sounds like an interesting problem. Please post as a new topic with input/expected_output example data, in the SAS Statistical Procedures community.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.