BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
kannand
Lapis Lazuli | Level 10

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".

Kannan Deivasigamani
wajmsu
Obsidian | Level 7

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       

PGStats
Opal | Level 21

Sounds like an interesting problem. Please post as a new topic with input/expected_output example data, in the SAS Statistical Procedures community.

PG

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to connect to databases in SAS Viya

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.

Discussion stats
  • 17 replies
  • 4330 views
  • 3 likes
  • 4 in conversation