I am wondering if there is way to make a label for entire data set. I have an assignment where I am supposed to have a label of "Study States" to my data set HypTabs.States. I know how to make variable labels, but is there a way to make a label for the actual data set?
Yes, LABEL="My label" exists as a dataset option.
Good to know! How do you specify that it is the label for the entire data set value?
Because if I put in LABEL State = "Study States" that does not work as I assume it seems like I am trying to specify a variable label. If I put LABEL = "Study States" it really just makes a variable called label that repeats the observation of "Study States". Basically what my professor wants me to do is that the entire data set has a label name of "Study States" rather than just "States". I am guessing we are supposed to do this as "Study States" would not be a valid data set name otherwise.
Data want / label= 'my study data with clean name';
I think it’s like above but haven’t tested it.
My bad, it’s in parentheses:
Or via PROC DATASETS.
data myDataset(label="My nice dataset");
Thanks you guys! Finally got it to work. Just had the placement wrong, so it kept making a variable called LABEL instead.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.