BookmarkSubscribeRSS Feed
clqa
Calcite | Level 5

if the (drop=variable) statement is used in the data statement with 3 data sets, but i say to drop the same variable in all 3, can it still be used in calculations?

3 REPLIES 3
Cynthia_sas
Diamond | Level 26
Hi:
Can you post some code you've tried and an example of using the (drop=variable) option (not statement)? It is hard to understand your question without an example.
Cynthia
mkeintz
PROC Star

I agree with @Cynthia_sas that posting your code would be a good idea.  But your question is also easily answered by trial and error - usually more effective that getting answers from others.

--------------------------
The hash OUTPUT method will overwrite a SAS data set, but not append. That can be costly. Consider voting for Add a HASH object method which would append a hash object to an existing SAS data set

Would enabling PROC SORT to simultaneously output multiple datasets be useful? Then vote for
Allow PROC SORT to output multiple datasets

--------------------------
Reeza
Super User

@clqa wrote:

if the (drop=variable) statement is used in the data statement with 3 data sets, but i say to drop the same variable in all 3, can it still be used in calculations?


It depends on where and how you specified it. So Yes and No. 

CFC_SAS_Communities_400x225.jpgCFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2225 views
  • 0 likes
  • 4 in conversation