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. 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 3 replies
  • 701 views
  • 0 likes
  • 4 in conversation