BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I have inherited a number of SAS datsets created in Proc SQL and need to delete the old user defined labels. I was wondering if there is a fast way to remove all of the old labels for each table without having to rerun all new queries and deleting them all manually.
3 REPLIES 3
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Clarification: remove a SAS dataset label or remove one or more SAS variable label within a given dataset? Have you looked at PROC DATASETS - link below to example (found from SAS support http://support.sas.com/ website SEARCH):

http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a003185567.htm

Scott Barry
SBBWorks, Inc.

Recommended Google advanced search argument, this topic/post:

remove sas variable label site:sas.com

Message was edited by: sbb Message was edited by: sbb
deleted_user
Not applicable
Thanks Scott, this works perfectly. - Bob
FrankSong
Calcite | Level 5

if you want to get ride of a specific label for x inherited from an Olddata

 

    proc sql;

    create table Yourdata as select ...,...., oldX as x label =""

    from Olddata;

 

if x has a label that you want to remove

    Data Yourdata; set Yourdata;

    label x =;

    run;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5462 views
  • 0 likes
  • 3 in conversation