<?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 - Other in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-Other/m-p/67456#M19299</link>
    <description>I am trying to create a permanent format with the goal of changing how skipped values are displayed in Proc Print. The character variable "Reason" is currently coded as ".SK" for skipped values. I would like them to display as "Skipped" when printed. Here is my code:&lt;BR /&gt;
&lt;BR /&gt;
proc format library = MyFmt;&lt;BR /&gt;
value $ReasonFmt&lt;BR /&gt;
'.SK' = 'Skipped';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data = Data1;&lt;BR /&gt;
var Reason;&lt;BR /&gt;
format Reason $ReasonFmt.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The problem is that non-skipped values (e.g. "No applicable insurance" and "Patient transferred care") get truncated to 3 characters (e.g. "No " and "Pat"). Is there a way to change the display of ".SK" while maintaining the way all other values are printed?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.</description>
    <pubDate>Thu, 19 May 2011 15:36:19 GMT</pubDate>
    <dc:creator>mflore</dc:creator>
    <dc:date>2011-05-19T15:36:19Z</dc:date>
    <item>
      <title>Proc Format - Other</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-Other/m-p/67456#M19299</link>
      <description>I am trying to create a permanent format with the goal of changing how skipped values are displayed in Proc Print. The character variable "Reason" is currently coded as ".SK" for skipped values. I would like them to display as "Skipped" when printed. Here is my code:&lt;BR /&gt;
&lt;BR /&gt;
proc format library = MyFmt;&lt;BR /&gt;
value $ReasonFmt&lt;BR /&gt;
'.SK' = 'Skipped';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
proc print data = Data1;&lt;BR /&gt;
var Reason;&lt;BR /&gt;
format Reason $ReasonFmt.;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
The problem is that non-skipped values (e.g. "No applicable insurance" and "Patient transferred care") get truncated to 3 characters (e.g. "No " and "Pat"). Is there a way to change the display of ".SK" while maintaining the way all other values are printed?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your help.</description>
      <pubDate>Thu, 19 May 2011 15:36:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-Other/m-p/67456#M19299</guid>
      <dc:creator>mflore</dc:creator>
      <dc:date>2011-05-19T15:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Format - Other</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-Other/m-p/67457#M19300</link>
      <description>The default length of a format is the length of the longest formatted value.&lt;BR /&gt;
&lt;BR /&gt;
You need to specify a DEFAULT= &lt;LENGTH in="" characters="" of="" longest="" string=""&gt; in the value statement:&lt;BR /&gt;
&lt;BR /&gt;
value $ReasonFmt (default=15)&lt;/LENGTH&gt;</description>
      <pubDate>Thu, 19 May 2011 19:53:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Format-Other/m-p/67457#M19300</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-05-19T19:53:49Z</dc:date>
    </item>
  </channel>
</rss>

