How to let a user filter their data by selecting columns they wish to keep?

Reply
Occasional Contributor
Posts: 13

How to let a user filter their data by selecting columns they wish to keep?

On SAS EG, how would you code to allow a program to run and ask a user to select the columns they wish to keep (or delete)? This would be done to filter out a large dataset.

 

I know you can manually filter and use query builder, I have tried these methods. But I want the code to make the program automated so that the user does not need to do anything themselves aside from select the columns they want to keep (or delete). Also, I can't type in the column options for the user as each inputted dataset running the code could consist of different columns, so the filtration options would be different per user.

 

Any advice or code would be appreciated!

Super User
Posts: 19,046

Re: How to let a user filter their data by selecting columns they wish to keep?

Isn't that exactly the Query Builder/Filter feature? 

You're trying to simplify a GUI tool even further? 

Super User
Posts: 7,400

Re: How to let a user filter their data by selecting columns they wish to keep?

Reinventing the wheel is considered stupid.

Somebody who can't be taught to use the query builder won't be able to do anything useful with SAS anyway, for lack of mental resources (politely speaking).

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
Ask a Question
Discussion stats
  • 2 replies
  • 116 views
  • 1 like
  • 3 in conversation