<?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 Re: proc print label option fails--why? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-label-option-fails-why/m-p/51095#M13973</link>
    <description>Hi:&lt;BR /&gt;
  This is the documented behavior. As is says here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001292467.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001292467.htm&lt;/A&gt;&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
By default, SAS uses variable names for column headings. &lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Even if you have a LABEL statement in your PROC PRINT step, you must -turn on- the use of those labels with the LABEL option (or with the SPLIT= option, which requires the use of the variable labels).&lt;BR /&gt;
 &lt;BR /&gt;
See the specific documentation here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002291718.htm#a003186152" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002291718.htm#a003186152&lt;/A&gt;  (LABEL)http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002291718.htm#a003186154  (SPLIT)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 02 Jul 2009 14:51:37 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-07-02T14:51:37Z</dc:date>
    <item>
      <title>proc print label option fails--why?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-label-option-fails-why/m-p/51094#M13972</link>
      <description>Using the label option in proc print seems easy enough but my attempts to do so silently fail (no error message in the log).  The code is basically this:&lt;BR /&gt;
&lt;BR /&gt;
proc print data=peopletolist n noobs;&lt;BR /&gt;
   title'participants with incomplete records';&lt;BR /&gt;
   var lname fname id_num region ispo_cd  group;&lt;BR /&gt;
   label lname='Last Name'&lt;BR /&gt;
         fname='First Name'&lt;BR /&gt;
		 id_num='ISP Number'&lt;BR /&gt;
		 region='Region'&lt;BR /&gt;
		 ispo_cd='Officer'&lt;BR /&gt;
		 group='Status';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Output does not use the specified label for each column but instead keeps using the name of the variable as the column header.  Why?</description>
      <pubDate>Thu, 02 Jul 2009 14:40:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-label-option-fails-why/m-p/51094#M13972</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-02T14:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc print label option fails--why?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-label-option-fails-why/m-p/51095#M13973</link>
      <description>Hi:&lt;BR /&gt;
  This is the documented behavior. As is says here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001292467.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/basess/58133/HTML/default/a001292467.htm&lt;/A&gt;&lt;BR /&gt;
&lt;B&gt;&lt;BR /&gt;
By default, SAS uses variable names for column headings. &lt;BR /&gt;
&lt;/B&gt;&lt;BR /&gt;
 &lt;BR /&gt;
Even if you have a LABEL statement in your PROC PRINT step, you must -turn on- the use of those labels with the LABEL option (or with the SPLIT= option, which requires the use of the variable labels).&lt;BR /&gt;
 &lt;BR /&gt;
See the specific documentation here:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002291718.htm#a003186152" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002291718.htm#a003186152&lt;/A&gt;  (LABEL)http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002291718.htm#a003186154  (SPLIT)&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 02 Jul 2009 14:51:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-label-option-fails-why/m-p/51095#M13973</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-02T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc print label option fails--why?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-print-label-option-fails-why/m-p/51096#M13974</link>
      <description>&amp;gt; Even if you have a LABEL statement in your PROC PRINT&lt;BR /&gt;
&amp;gt; step, you must -turn on- the use of those labels with&lt;BR /&gt;
&amp;gt; the LABEL option (or with the SPLIT= option, which&lt;BR /&gt;
&amp;gt; requires the use of the variable labels).&lt;BR /&gt;
&lt;BR /&gt;
Thank you, that was very helpful.&lt;BR /&gt;
The docs I was working from did not make that clear.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Thu, 02 Jul 2009 15:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-print-label-option-fails-why/m-p/51096#M13974</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-02T15:13:20Z</dc:date>
    </item>
  </channel>
</rss>

