BookmarkSubscribeRSS Feed
subrat1
Fluorite | Level 6

My Input table:

inp_status_dsSelected_082018Selected_082218
Bound$134,104,152.35$132,159,545.67
Declined$1,277,887,802.55$1,277,916,876.55
Deleted$1,843,298.56$1,843,298.56
In Progress$890,400,353.32$890,400,353.32
TOTAL$2,954,563,587.84$2,952,648,055.16
Lost$624,359,889.70$624,359,889.70
Quoted$25,968,091.35$25,968,091.35

 

 

I want my output table:

inp_status_dsSelected_082018Selected_082218
Bound$134,104,152.35$132,159,545.67
Declined$1,277,887,802.55$1,277,916,876.55
Deleted$1,843,298.56$1,843,298.56
In Progress$890,400,353.32$890,400,353.32
Lost$624,359,889.70$624,359,889.70
Quoted$25,968,091.35$25,968,091.35
TOTAL$2,954,563,587.84$2,952,648,055.16
2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Post test data in the form of a datastep, as such this is untested:

data want;
  set have (where=(inp_status_ds ne "TOTAL"))
      have (where=(inp_status_ds="TOTAL"));
run;
Astounding
PROC Star

For this particular set of data, you could use:

 

proc sort data=have;

by inp_status_ds;

run;

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!

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
  • 2 replies
  • 593 views
  • 0 likes
  • 3 in conversation