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
SAS Super FREQ
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. 

SAS Innovate 2025: Register Now

Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!

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
  • 887 views
  • 0 likes
  • 4 in conversation