BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
GN0001
Barite | Level 11

Hello team,

 

I need to learn SAS and I need to know the syntax for some of the keywords.

 

I am looking for syntax for DupOut, how to go to find the syntax and information about this key word?

 

Regards,

GN

Blue Blue
1 ACCEPTED SOLUTION

Accepted Solutions
Ksharp
Super User
data class;
 set sashelp.class;
run;


proc sort data=class dupout=want nodupkey;
by sex;
run;

View solution in original post

4 REPLIES 4
LinusH
Tourmaline | Level 20
If you are not acquainted with SAS sites try Google, DUPOUT should be a quote rare "word".
But if you intend to learn SAS, it seems a bit odd to call for a specific option on a specific procedure. Take a look at the free online Programming training, probably much more effective than looking for syntax excerpts.
Data never sleeps
GN0001
Barite | Level 11

Thanks for the response.

 

I am learning SAS; I need some place to go when I have a question; like when I go to MSDN to ask a question or learn something.

 

Regards,

GN

Blue Blue
Ksharp
Super User

Like This ?

 

data class;
 set sashelp.class;
run;


proc sort data=class dupout=want nodupkey;
by sex;
run;
Ksharp
Super User
data class;
 set sashelp.class;
run;


proc sort data=class dupout=want nodupkey;
by sex;
run;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 4 replies
  • 3970 views
  • 3 likes
  • 3 in conversation