BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
marianhabesland
Calcite | Level 5

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
PGStats
Opal | Level 21

data myDataset(label="My nice dataset");

PG

View solution in original post

6 REPLIES 6
PGStats
Opal | Level 21

Yes, LABEL="My label" exists as a dataset option.

PG
marianhabesland
Calcite | Level 5

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.

Reeza
Super User

Data want / label= 'my study data with clean name';

 

I think it’s like above but haven’t tested it. 

Reeza
Super User

My bad, it’s in parentheses:

 

https://support.sas.com/documentation/cdl/en/ledsoptsref/69751/HTML/default/viewer.htm#p1njbys6vjpeh...

 

 

Or via PROC DATASETS. 

 

 

PGStats
Opal | Level 21

data myDataset(label="My nice dataset");

PG
marianhabesland
Calcite | Level 5

Thanks you guys! Finally got it to work. Just had the placement wrong, so it kept making a variable called LABEL instead. 

Catch up on SAS Innovate 2026

Dive into keynotes, announcements and breakthroughs on demand.

Explore Now →
Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 6 replies
  • 3749 views
  • 0 likes
  • 3 in conversation