DATA Step, Macro, Functions and more

Getting label within datastep

Reply
Contributor
Posts: 56

Getting label within datastep

Hi All,

Is there any way to extract the value of variable lable and convert to the value of a seperate variable within a datastep ? For example, If i want to create a variable label_desc which has the value of the the lable of the corrosponding variable ?

Just want to see there is a better way then doing it with proc contents , sorted and then merging back to the dataset.

Thanks
Super Contributor
Super Contributor
Posts: 3,174

Re: Getting label within datastep

The SAS DATA step function VLABEL is what you want to use.

Scott Barry
SBBWorks, Inc.

Google advanced search argument, this topic/post:
vlabel function site:sas.com
Super Contributor
Posts: 394

Re: Getting label within datastep

Contributor
Posts: 56

Re: Getting label within datastep

Thanks much, This is what I am lookin for.
Ask a Question
Discussion stats
  • 3 replies
  • 133 views
  • 0 likes
  • 3 in conversation