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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1831 views
  • 0 likes
  • 2 in conversation