BookmarkSubscribeRSS Feed
knveraraju91
Barite | Level 11

Dear,

 

This is a simple question I just want to know if i can do this way.

I know how to get the output I need, but below code is not working when I try.  Can't i output two data sets from proc sort procedure. Thank you

proc sort data=one out=two three;
by id seq;
run;
4 REPLIES 4
Reeza
Super User

@knveraraju91 wrote:

Can't i output two data sets from proc sort procedure. Thank you


It depends. There are multiple output options but it's not clear what you're trying to do here, sort multiple data sets at once or duplicate the same data set or identify duplicates/unique records. 

 

 

knveraraju91
Barite | Level 11

Ok. Thank you. Here, I am trying for same data sets. I used dupout option for duplicates.

 

Both two and three are same datasets. 

Reeza
Super User

Ok, then that's not possible within PROC SORT. 

 


@knveraraju91 wrote:

Ok. Thank you. Here, I am trying for same data sets. I used dupout option for duplicates.

 

Both two and three are same datasets. 


 

LinusH
Tourmaline | Level 20

What is the use case for this requirement?

Data never sleeps

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 660 views
  • 1 like
  • 3 in conversation