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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 6597 views
  • 0 likes
  • 3 in conversation