<?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: Help exporting correct format in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94683#M26754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try the &lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP and PROC PRINT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Feb 2013 20:02:43 GMT</pubDate>
    <dc:creator>AncaTilea</dc:creator>
    <dc:date>2013-02-01T20:02:43Z</dc:date>
    <item>
      <title>Help exporting correct format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94682#M26753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the following to reformat some data from 9999 to 163-KN9-999:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;&amp;nbsp; picture KH_Format&lt;/P&gt;&lt;P&gt;&amp;nbsp; low-high='9-999'&lt;/P&gt;&lt;P&gt;&amp;nbsp; (prefix='163-KH');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This gives me exactly what I need and the variables look great when I export to .csv.&amp;nbsp; Problem is that I need to export to .xlsx and the format does not "stick."&amp;nbsp; In the .xlsx file the formats go back to only a 4 digit rather than the desired 163-KH9-999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on why this is or ideas on another method that will not cause problems?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:00:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94682#M26753</guid>
      <dc:creator>gstullo</dc:creator>
      <dc:date>2013-02-01T20:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Help exporting correct format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94683#M26754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could try the &lt;/P&gt;&lt;P&gt;ODS TAGSETS.EXCELXP and PROC PRINT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anca.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:02:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94683#M26754</guid>
      <dc:creator>AncaTilea</dc:creator>
      <dc:date>2013-02-01T20:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: Help exporting correct format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94684#M26755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the log SAS tells you that exporting to Excel will not maintain formats. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have two options:&lt;/P&gt;&lt;P&gt;1) create a new variable and recode the variable using a put statement and output that variable instead. &lt;/P&gt;&lt;P&gt;2) Output using another destination, principally, tagsets.excelxp that will maintain the format. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:03:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94684#M26755</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2013-02-01T20:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Help exporting correct format</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94685#M26756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you will need to create a character version of the variable and export it insead of the numeric.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put(x,KH_FORMAT.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 20:03:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Help-exporting-correct-format/m-p/94685#M26756</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2013-02-01T20:03:43Z</dc:date>
    </item>
  </channel>
</rss>

