SAS Procedures

Help using Base SAS procedures
BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I was wondering if anyone would be able to help me figure out how exactly to assign a label to a SAS data set I'm creating. If more/specific information is needed, I'll re-post at once, and thanks in advance for any/all help.

d
4 REPLIES 4
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Look at the SAS DATA statement/option LABEL="".


Scott Barry
SBBWorks, Inc.

Suggested Google advanced search argument, this topic/post:

assign sas dataset label site:sas.com
deleted_user
Not applicable
Scott,

Thanks for the reply on that. I'd noted the LABEL="" statement, yet I'm honestly unsure where to put it in my program. If this helps, here's a basic look at my program:


data LibraryX.TABLEX;
infile test.txt;
format FIELD1 $20; format FIELD2 $30;
informat FIELD1 $20; informat FIELD2 $30;
input FIELD1 $
FIELD2 $;
output; end; run;

Would it be possible to look at that and tell me where (and how) that would go if I wanted to give my table (TABLEX) a label of "Data Table X"?


Again, thanks in advance, and I appreciate your time.
d
deleted_user
Not applicable
In this context, LABEL is a data set option. The general syntax is:

DATA X.Y (LABEL='label');

In this particular case, you want:

data LibraryX.TABLEX (LABEL='whatever');
deleted_user
Not applicable
Bob and Scott,

Thanks again for the help, and this worked perfectly. I really appreciate your time IMMENSELY!!!


Regards,
d

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 2380 views
  • 0 likes
  • 2 in conversation