<?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 Proc format and export in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204431#M38032</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a user defined format using proc format.&lt;/P&gt;&lt;P&gt;afetr applying the format a variable and later when exporting the dataset I'm not seeing the values in format there.&lt;/P&gt;&lt;P&gt;TThe values of the variable after applying the format look loke theese&lt;/P&gt;&lt;P&gt;(10-20)&lt;/P&gt;&lt;P&gt;-(20-40)&lt;/P&gt;&lt;P&gt;after exporying i see -10 and 20 etc.&lt;/P&gt;&lt;P&gt;how to export without any data loss?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 22:47:28 GMT</pubDate>
    <dc:creator>SASPhile</dc:creator>
    <dc:date>2015-06-11T22:47:28Z</dc:date>
    <item>
      <title>Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204431#M38032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a user defined format using proc format.&lt;/P&gt;&lt;P&gt;afetr applying the format a variable and later when exporting the dataset I'm not seeing the values in format there.&lt;/P&gt;&lt;P&gt;TThe values of the variable after applying the format look loke theese&lt;/P&gt;&lt;P&gt;(10-20)&lt;/P&gt;&lt;P&gt;-(20-40)&lt;/P&gt;&lt;P&gt;after exporying i see -10 and 20 etc.&lt;/P&gt;&lt;P&gt;how to export without any data loss?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 22:47:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204431#M38032</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2015-06-11T22:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204432#M38033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please let me know how you applied the format , either by format statement or via put function. I believe the issue what you mentioned arises when the format is applied by format statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to apply the format by put function to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jag&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 23:21:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204432#M38033</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-06-11T23:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204433#M38034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I defined as follows:&lt;/P&gt;&lt;P&gt;proc format;&lt;/P&gt;&lt;P&gt;value diff;&lt;/P&gt;&lt;P&gt;10-20='10-20'&lt;/P&gt;&lt;P&gt;-10-20='(10-20)';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data t;&lt;/P&gt;&lt;P&gt;set y;&lt;/P&gt;&lt;P&gt;score format diff.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;so when i export dataset, score doesn't show up as whats defined or displayed in the dataset. instead score shows as -10 and 10 etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 02:21:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204433#M38034</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2015-06-12T02:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204434#M38035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try to use put function as &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also i guess you have applied the format as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;format score diff.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now change this to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data t;&lt;/P&gt;&lt;P&gt;set y(rename=(score=score2));&lt;/P&gt;&lt;P&gt;score=put(score2,diff.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 02:30:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204434#M38035</guid>
      <dc:creator>Jagadishkatam</dc:creator>
      <dc:date>2015-06-12T02:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204435#M38036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To expand, if you export to Excel SAS does not use the formats in the export. There's usually a note in the log to that effect. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of applying the format using a format statement you'll need to create a new variable and recode it using the put function as indicated by &lt;A __default_attr="9792" __jive_macro_name="user" class="jive_macro jive_macro_user" data-objecttype="3" href="https://communities.sas.com/"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code has some issues though as your ranges overlap so I'd expect SAS to complain about that, as well as having incorrect format statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 04:04:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204435#M38036</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-06-12T04:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204436#M38037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Once you have assigned a format to a variable, the put statement will honor that when outputting to a text file.&lt;/P&gt;&lt;P&gt;Use .csv as the transfer format, as it is easily controllable with a simple text editor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt; Textuality rules!&lt;/P&gt;&lt;P&gt;(common UNIX adage)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 06:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204436#M38037</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2015-06-12T06:13:22Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204437#M38038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #008080; font-size: 10pt; font-family: Courier New;"&gt;20&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt; - &amp;lt; -&lt;/SPAN&gt;&lt;STRONG style=": ; color: #008080; font-size: 10pt; font-family: Courier New;"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: Courier New;"&gt;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;'-(10-20)'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt; font-family: Courier New;"&gt;is shwon as -10 in csv&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204437#M38038</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2015-06-12T14:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204438#M38039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to check, do you really mean it looks like that as CSV, i.e. have you opened the file in notepad and looked at the data.&amp;nbsp; I would suggest you are opening the CSV in Excel, which is resolving the equation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 14:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204438#M38039</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-06-12T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc format and export</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204439#M38040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Courier New'; color: #008080; background-color: #ffffff;"&gt;20&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: #ffffff;"&gt; - &amp;lt; -&lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'Courier New'; color: #008080; background-color: #ffffff;"&gt;10&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: #800080; background-color: #ffffff;"&gt;'"09"x -(10-20)'&amp;nbsp;&amp;nbsp; ?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2015 04:29:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-format-and-export/m-p/204439#M38040</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2015-06-13T04:29:13Z</dc:date>
    </item>
  </channel>
</rss>

