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: ;

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore Now →
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
  • 3250 views
  • 1 like
  • 3 in conversation