<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic print label of a dataset in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/print-label-of-a-dataset/m-p/533677#M146344</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to print label of dataset(not variable)&lt;/P&gt;
&lt;PRE&gt;DATA XX(LABEL = "This is the label of dataset xx");
X=999;
RUN;

PROC PRINT DATA=XX/LABEL;
RUN;


&lt;/PRE&gt;
&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Feb 2019 18:00:23 GMT</pubDate>
    <dc:creator>GeorgeSAS</dc:creator>
    <dc:date>2019-02-07T18:00:23Z</dc:date>
    <item>
      <title>print label of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-label-of-a-dataset/m-p/533677#M146344</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to print label of dataset(not variable)&lt;/P&gt;
&lt;PRE&gt;DATA XX(LABEL = "This is the label of dataset xx");
X=999;
RUN;

PROC PRINT DATA=XX/LABEL;
RUN;


&lt;/PRE&gt;
&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Feb 2019 18:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-label-of-a-dataset/m-p/533677#M146344</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2019-02-07T18:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: print label of a dataset</title>
      <link>https://communities.sas.com/t5/SAS-Programming/print-label-of-a-dataset/m-p/533685#M146347</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10531"&gt;@GeorgeSAS&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hello everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to print label of dataset(not variable)&lt;/P&gt;
&lt;PRE&gt;DATA XX(LABEL = "This is the label of dataset xx");
X=999;
RUN;

PROC PRINT DATA=XX/LABEL;
RUN;


&lt;/PRE&gt;
&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sounds like you want a TITLE statement. If you want to do this automagically you would have to read the table properties, place the label into a macro variable and use that variable in a title statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data work.junk (label='This is a dataset label');
x=1;
run;

proc sql noprint;
   select memlabel into : labelvar
   from dictionary.tables
   where libname='WORK' and memname='JUNK'
   ;
run;

proc print data=work.junk ;
   title "&amp;amp;labelvar.";
run; title;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Feb 2019 18:40:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/print-label-of-a-dataset/m-p/533685#M146347</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-07T18:40:40Z</dc:date>
    </item>
  </channel>
</rss>

