BookmarkSubscribeRSS Feed
ybz12003
Rhodochrosite | Level 12

Hello:

 

I am curious if there is a way to find a column like the operation Ctrl + F in Excel.  Just curious, cause I have over 500 columns.

 

Thanks.

4 REPLIES 4
PaigeMiller
Diamond | Level 26

This could use some clarification.

 

I am curious if there is a way to find a column

 

Are you asking to find a specific column with a specific name, or are you asking to search for specific values in a given column?

--
Paige Miller
Reeza
Super User

@ybz12003 wrote:

Hello:

 

I am curious if there is a way to find a column like the operation Ctrl + F in Excel.  Just curious, cause I have over 500 columns.

 

Thanks.


Yes.

ybz12003
Rhodochrosite | Level 12

First, I would like to find a specific column with a specific name.   Then I would like to search specific value or text in a given column.

 

Is there a way to do that? 

34reqrwe
Quartz | Level 8

What software are you using? In Enterprise Guide you if you are viewing a dataset you can use Ctrl+F . 

 

But if you have lots of data (which it sounds like you do) you are better to write SAS code . You could do something like this:

%macro find_data (column= , value= ) ;

	data want; 
		set sashelp.class;
		where &column=&value;
	run;
%mend;


%find_data (column=Name , value='Carol') ;
%find_data (column=Age , value=14) ;

 

 

 

 

 

 

 

 

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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