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-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!

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