BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
klj4y
Calcite | Level 5
data dd; 
input Employee_id $ Name $17. gender $ years $ dept $ salary01: comma6. salary02: comma6. salary03: comma6.;
run;
1 Mitchell, Jane A f 6 shoe 22,450 23,000 26,600
2 Miller, Frances T f 8 appliance . 32,500 33,000
3 Evans, Richard A m 9 appliance 42,900 43,900 .
4 Fair, Suzanne K f 3 clothing 29,700 32,900 34,500
5 Meyers, Thomas D m 5 appliance 33,700 34,400 37,000
6 Rogers, Steven F m 3 shoe 27,000 27,800 .
7 Anderson, Frank F m 5 clothing 33,000 35,100 36,000
10 Baxter, David T m 2 shoe 23,900 . 31,300
11 Wood, Brenda L f 3 clothing 33,000 34,000 35,700
12 Wheeler, Vickie M f 7 appliance 31,500 33,200 35,600
13 Hancock, Sharon T f 1 clothing 21,000 . 22,500
14 Looney, Roger M m 10 appliance 42,900 36,200 37,800
15 Fry, Marie E f 6 clothing 29,700 30,500 31,200  
run;

proc sort data=dd;
by salary01;
run;

 

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User
proc print data=sashelp.class(obs=1);
run;

Use the OBS=1 option on the data set to print just one record.

View solution in original post

2 REPLIES 2

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 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 623 views
  • 1 like
  • 3 in conversation