BookmarkSubscribeRSS Feed
Raj00007
Calcite | Level 5

 "Exclude all variables that begin with "ex" from results.nomatch08.".

 

i have a question like this. How do i execute it ?

4 REPLIES 4
ketpt42
Quartz | Level 8
Need more context for what you're trying to do with the dataset. Are you printing it? Creating another dataset?
Raj00007
Calcite | Level 5
i need to create a dataset
ketpt42
Quartz | Level 8

OK, then you would do like @Patrick indicated.

 

data results.nomatch09;
    set results.nomatch08;
    drop ex: ;
run;

/* or */

data results.nomatch09;
    set results.nomatch08 (drop=ex: );
run;
Patrick
Opal | Level 21

drop ex: ;

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 2361 views
  • 1 like
  • 3 in conversation