<?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: labels not showing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562639#M157631</link>
    <description>&lt;P&gt;PROC PRINT will use the variable names by default.&amp;nbsp; If you want it to use the labels then add the LABEL option to the PROC PRINT statement.&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 18:20:40 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2019-05-30T18:20:40Z</dc:date>
    <item>
      <title>Re: labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562612#M157630</link>
      <description>&lt;P&gt;I am facing the same problem, labels&amp;nbsp;&lt;SPAN style="display: inline !important; float: none; background-color: transparent; color: #333333; cursor: text; font-family: 'HelevticaNeue-light','Helvetica Neue',Helvetica,Arial,sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: left; text-decoration: none; text-indent: 0px; text-transform: none; -webkit-text-stroke-width: 0px; white-space: normal; word-spacing: 0px;"&gt;not appearing in proc ,I tried&amp;nbsp;proc options option=label; and option label;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc options option=label;
run;

option label;
proc format;

   value agegrp 0 - 30 = '0 to 30'

               31 - 50 = '31 to 50'

               51 - 70 = '50 to 70'

               71 - high = '71 and older';

   value $party 'D' = 'Democrat'

                'R' = 'Republican';

   value $likert '1' = 'Strongly Disagree'

                 '2' = 'Disagree'

                 '3' = 'No Opinion'

                 '4' = 'Agree'

                 '5' = 'Strongly Agree';

run;

data Voter;

   input Age Party : $1. (Ques1-Ques4)($1. + 1);

   label Ques1 = 'The president is doing a good job'

         Ques2 = 'Congress is doing a good job'

         Ques3 = 'Taxes are too high'

         Ques4 = 'Government should cut spending';

   format Age agegrp.

          Party $party.

          Ques1-Ques4 $likert.;

datalines;

23 D 1 1 2 2

45 R 5 5 4 1

67 D 2 4 3 3

39 R 4 4 4 4

19 D 2 1 2 1

75 D 3 3 2 3

57 R 4 3 4 4

;


title "Listing of Voter";
proc print data=Voter;
run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="voter.jpg" style="width: 509px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/29889i691EC437ADADE8F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="voter.jpg" alt="voter.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Any help/suggestion ,I would be so grateful.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 16:08:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562612#M157630</guid>
      <dc:creator>anupamark</dc:creator>
      <dc:date>2019-05-30T16:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562639#M157631</link>
      <description>&lt;P&gt;PROC PRINT will use the variable names by default.&amp;nbsp; If you want it to use the labels then add the LABEL option to the PROC PRINT statement.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 18:20:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562639#M157631</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-30T18:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562647#M157634</link>
      <description>&lt;P&gt;Thanks for the response ,I tried with label in proc print&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title "Listing of Voter";
proc print data=Voter;
label   Ques1 = 'The president is doing a good job'

         Ques2 = 'Congress is doing a good job'

         Ques3 = 'Taxes are too high'

         Ques4 = 'Government should cut spending';
       run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Still I get the variable names.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 18:45:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562647#M157634</guid>
      <dc:creator>anupamark</dc:creator>
      <dc:date>2019-05-30T18:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562663#M157637</link>
      <description>&lt;P&gt;If you don't actually tell PROC PRINT to use the labels as the column headers it will continue to use the names.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=Voter LABEL;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Whether you change the labels to use during PROC by also using LABEL statements or not.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 19:32:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562663#M157637</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-05-30T19:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562699#M157646</link>
      <description>&lt;P&gt;thanks ,it worked&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 20:05:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Re-labels-not-showing/m-p/562699#M157646</guid>
      <dc:creator>anupamark</dc:creator>
      <dc:date>2019-05-30T20:05:16Z</dc:date>
    </item>
  </channel>
</rss>

