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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
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!
Get started using SAS Studio to write, run and debug your SAS programs.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.