<?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: Preserving labels when using PROC EXPORT in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Preserving-labels-when-using-PROC-EXPORT/m-p/302767#M64258</link>
    <description>&lt;P&gt;Not sure what version of SAS you're on or if this is DBMS dependent.. but there is a 'label' option post 9.2 I believe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=dsn outfile='file' dbms=xlsx label replace;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 05 Oct 2016 19:30:49 GMT</pubDate>
    <dc:creator>JoshB</dc:creator>
    <dc:date>2016-10-05T19:30:49Z</dc:date>
    <item>
      <title>Preserving labels when using PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preserving-labels-when-using-PROC-EXPORT/m-p/302764#M64256</link>
      <description>&lt;P&gt;When I look at the SAS set in the WORK library I see the labels I want for this data set. However, when I export the xlsx files, the labels are gone. &amp;nbsp;Can they be preserved?&lt;/P&gt;
&lt;P&gt;Code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data all_exp;&lt;BR /&gt;retain schoolname testgrade scimean scipct1 scipct2 socmean socpct1 socpct2 socpct3;&lt;BR /&gt;set all;&lt;BR /&gt;keep schoolname testgrade scimean scipct1 scipct2 socmean socpct1 socpct2 socpct3;&lt;BR /&gt;label scipct1='% NM (Sci)' scipct2='% M (Sci)' scipct3='% E (Sci)' socpct1='% NM (Soc)' socpct2='% M (Soc)' socpct3='% E (Soc)' &lt;BR /&gt;scimean='Sci Mean' socmean='Soc Mean' ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;%macro allexp(num=);&lt;BR /&gt;proc export data=all_exp (where=(testgrade="&amp;amp;num")) outfile="C:\....\Excel files\SCPASS_&amp;amp;yr._Gr&amp;amp;num..xlsx"&lt;BR /&gt;dbms=xlsx replace;&lt;BR /&gt;run;&lt;BR /&gt;%mend;&lt;BR /&gt;%allexp(num=04);%allexp(num=05);%allexp(num=06);%allexp(num=07);%allexp(num=08);&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 19:27:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preserving-labels-when-using-PROC-EXPORT/m-p/302764#M64256</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-10-05T19:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Preserving labels when using PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preserving-labels-when-using-PROC-EXPORT/m-p/302767#M64258</link>
      <description>&lt;P&gt;Not sure what version of SAS you're on or if this is DBMS dependent.. but there is a 'label' option post 9.2 I believe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;something like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc export data=dsn outfile='file' dbms=xlsx label replace;run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Oct 2016 19:30:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preserving-labels-when-using-PROC-EXPORT/m-p/302767#M64258</guid>
      <dc:creator>JoshB</dc:creator>
      <dc:date>2016-10-05T19:30:49Z</dc:date>
    </item>
    <item>
      <title>Re: Preserving labels when using PROC EXPORT</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Preserving-labels-when-using-PROC-EXPORT/m-p/302768#M64259</link>
      <description>&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 19:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Preserving-labels-when-using-PROC-EXPORT/m-p/302768#M64259</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2016-10-05T19:34:01Z</dc:date>
    </item>
  </channel>
</rss>

