Help using Base SAS procedures

Table Label

Reply
N/A
Posts: 0

Table Label

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
Super Contributor
Super Contributor
Posts: 3,174

Re: Table Label

Posted in reply to deleted_user
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
N/A
Posts: 0

Re: Table Label

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
N/A
Posts: 0

Re: Table Label

Posted in reply to deleted_user
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');
N/A
Posts: 0

Re: Table Label

Posted in reply to deleted_user
Bob and Scott,

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


Regards,
d
Ask a Question
Discussion stats
  • 4 replies
  • 390 views
  • 0 likes
  • 2 in conversation