philihpAboutPGPLightning

Easy Way to Remove All Variable Labels in SAS

Philihp Busby,1 min read

The hard way to remove a label in SAS is to list out all of the labels one-by-one, like this

data mylib.mydataset; set mylib.mydataset; label varA=''; label varB=''; label varC=''; run;

But if you don’t know all of the variables ahead of time, or just want something cleaner/faster, you can do this

proc datasets library=mylib nolist; modify mydataset; attrib _all_ label=''; quit;

GitHub · Bluesky · LinkedIn · Instagram · KeybaseRSS

Built from 8f0906ac CC BY 4.0 — with love from San Francisco.