🔒 This topic is solved and locked.
Need further help from the community? Please
sign in and ask a new question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Posted 06-18-2020 05:08 PM
(1047 views)
I have a series of patients who have certain characteristics( variables)
I need to pick out the patients that meet the criteria by using their patient ID (300 unique identifiers) and separate them into their own dataset so they are alike only by that one characteristic.
i=I want it to be like this:
Data want;
SET have;
where patientnum= 3 6 5 4 8 7 9 0 ;
run;
but this doesn't work. and using OR and AND statements cancels the previous ID number
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Data want;
SET have;
where patientnum in (3 6 5 4 8 7 9 0) ;
run;
/*or*/
where patientnum in (3, 6, 5, 4, 8, 7, 9, 0) ;
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Data want;
SET have;
where patientnum in (3 6 5 4 8 7 9 0) ;
run;
/*or*/
where patientnum in (3, 6, 5, 4, 8, 7, 9, 0) ;