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

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register 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
  • 1657 views
  • 1 like
  • 3 in conversation