<?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 labels not showing in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/labels-not-showing/m-p/501980#M133933</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing the online SAS Programming 1 class and I'm having trouble getting my labels to show in SAS Enterprise Guide.&amp;nbsp; We're using the sashelp.cars table and this is in activity p105a04.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're supposed to use a data statement to assign permanent labels to some columns, then run the means and print procedures with the output using the labels rather than the original column names.&lt;/P&gt;&lt;P&gt;This is the code that I have, which matches exactly with what the solution has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cars_update;
    set sashelp.cars;
    keep Make Model MSRP Invoice AvgMPG;
    AvgMPG=mean(MPG_Highway, MPG_City);
    label MSRP="Manufacturer Suggested Retail Price"
    AvgMPG="Average Miles per Gallon"
    Invoice="Invoice Price";
run;

proc means data=cars_update min mean max;
    var MSRP Invoice;
run;

proc print data=cars_update label;
    var Make Model MSRP Invoice AvgMPG;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The labels for the columns should be replaced with my new labels (eg. MRSP should be "Manufacturer Suggested Retail Price"), but it's only showing the original column names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what the output tables look like:&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="Ex1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23816i3537821313F85BCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex1.PNG" alt="Ex1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at&amp;nbsp;proc contents like she did in the lesson, but the labels weren't in there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ex2.PNG" style="width: 295px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23818i4458E4EE119AF0E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex2.PNG" alt="Ex2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using the proc print statement with temporary labels, but the labels didn't show up for that either:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=cars_update label;
    var Make Model MSRP Invoice AvgMPG;
    label MSRP="Manufacturer Suggested Retail Price"
             AvgMPG="Average Miles per Gallon"
             Invoice="Invoice Price";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ex3.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23819i81992DD9B6132F03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex3.PNG" alt="Ex3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 16:15:34 GMT</pubDate>
    <dc:creator>whyknock</dc:creator>
    <dc:date>2018-10-05T16:15:34Z</dc:date>
    <item>
      <title>labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/labels-not-showing/m-p/501980#M133933</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm doing the online SAS Programming 1 class and I'm having trouble getting my labels to show in SAS Enterprise Guide.&amp;nbsp; We're using the sashelp.cars table and this is in activity p105a04.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We're supposed to use a data statement to assign permanent labels to some columns, then run the means and print procedures with the output using the labels rather than the original column names.&lt;/P&gt;&lt;P&gt;This is the code that I have, which matches exactly with what the solution has:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cars_update;
    set sashelp.cars;
    keep Make Model MSRP Invoice AvgMPG;
    AvgMPG=mean(MPG_Highway, MPG_City);
    label MSRP="Manufacturer Suggested Retail Price"
    AvgMPG="Average Miles per Gallon"
    Invoice="Invoice Price";
run;

proc means data=cars_update min mean max;
    var MSRP Invoice;
run;

proc print data=cars_update label;
    var Make Model MSRP Invoice AvgMPG;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The labels for the columns should be replaced with my new labels (eg. MRSP should be "Manufacturer Suggested Retail Price"), but it's only showing the original column names.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's what the output tables look like:&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="Ex1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23816i3537821313F85BCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex1.PNG" alt="Ex1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked at&amp;nbsp;proc contents like she did in the lesson, but the labels weren't in there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ex2.PNG" style="width: 295px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23818i4458E4EE119AF0E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex2.PNG" alt="Ex2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried using the proc print statement with temporary labels, but the labels didn't show up for that either:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=cars_update label;
    var Make Model MSRP Invoice AvgMPG;
    label MSRP="Manufacturer Suggested Retail Price"
             AvgMPG="Average Miles per Gallon"
             Invoice="Invoice Price";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ex3.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23819i81992DD9B6132F03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex3.PNG" alt="Ex3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 16:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/labels-not-showing/m-p/501980#M133933</guid>
      <dc:creator>whyknock</dc:creator>
      <dc:date>2018-10-05T16:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/labels-not-showing/m-p/502032#M133958</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/237773"&gt;@whyknock&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm doing the online SAS Programming 1 class and I'm having trouble getting my labels to show in SAS Enterprise Guide.&amp;nbsp; We're using the sashelp.cars table and this is in activity p105a04.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We're supposed to use a data statement to assign permanent labels to some columns, then run the means and print procedures with the output using the labels rather than the original column names.&lt;/P&gt;
&lt;P&gt;This is the code that I have, which matches exactly with what the solution has:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data cars_update;
    set sashelp.cars;
    keep Make Model MSRP Invoice AvgMPG;
    AvgMPG=mean(MPG_Highway, MPG_City);
    label MSRP="Manufacturer Suggested Retail Price"
    AvgMPG="Average Miles per Gallon"
    Invoice="Invoice Price";
run;

proc means data=cars_update min mean max;
    var MSRP Invoice;
run;

proc print data=cars_update label;
    var Make Model MSRP Invoice AvgMPG;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The labels for the columns should be replaced with my new labels (eg. MRSP should be "Manufacturer Suggested Retail Price"), but it's only showing the original column names.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's what the output tables look like:&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="Ex1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23816i3537821313F85BCB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex1.PNG" alt="Ex1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I looked at&amp;nbsp;proc contents like she did in the lesson, but the labels weren't in there.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ex2.PNG" style="width: 295px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23818i4458E4EE119AF0E5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex2.PNG" alt="Ex2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also tried using the proc print statement with temporary labels, but the labels didn't show up for that either:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc print data=cars_update label;
    var Make Model MSRP Invoice AvgMPG;
    label MSRP="Manufacturer Suggested Retail Price"
             AvgMPG="Average Miles per Gallon"
             Invoice="Invoice Price";
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ex3.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23819i81992DD9B6132F03/image-size/large?v=v2&amp;amp;px=999" role="button" title="Ex3.PNG" alt="Ex3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated!&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance!&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Try running this code and then check the log:&lt;/P&gt;
&lt;PRE&gt;proc options option=label;
run;&lt;/PRE&gt;
&lt;P&gt;If you see something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; NOLABEL           Disables procedures from using labels with variables.
&lt;/PRE&gt;
&lt;P&gt;then someone set a system option not to display labels. Which should be fixable with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;option label;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't see the NOLABEL then I would re-run your data step creating cars_update and verify that it was successfully created by checking the LOG. The symptom you describe sounds more like you created the set and then modified the code to add the labels and either did not rerun the code or that there was an error and the data set was not replaced for some reason such as open in view table mode or a syntax error.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:38:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/labels-not-showing/m-p/502032#M133958</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-10-05T19:38:03Z</dc:date>
    </item>
    <item>
      <title>Re: labels not showing</title>
      <link>https://communities.sas.com/t5/SAS-Programming/labels-not-showing/m-p/502033#M133959</link>
      <description>&lt;P&gt;Thank you!&amp;nbsp; It worked perfectly.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 19:41:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/labels-not-showing/m-p/502033#M133959</guid>
      <dc:creator>whyknock</dc:creator>
      <dc:date>2018-10-05T19:41:49Z</dc:date>
    </item>
  </channel>
</rss>

