<?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: Reading and displaying Zoned decimal S9(13)V99 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-and-displaying-Zoned-decimal-S9-13-V99/m-p/23675#M3935</link>
    <description>Define a SAS FORMAT statement, either in the DATA step or with PROC PRINT execution.  Using the SEARCH facility at the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website, I found the link below:&lt;BR /&gt;
&lt;BR /&gt;
Working with Packed Decimal and Zoned Decimal Data&lt;BR /&gt;
&lt;A href="http://v8doc.sas.com/sashtml/lrcon/z1265705.htm" target="_blank"&gt;http://v8doc.sas.com/sashtml/lrcon/z1265705.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Also, you really should consider upgrading SAS to a more current (and fully supported) version in the near future.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sun, 26 Apr 2009 13:36:10 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-04-26T13:36:10Z</dc:date>
    <item>
      <title>Reading and displaying Zoned decimal S9(13)V99</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-and-displaying-Zoned-decimal-S9-13-V99/m-p/23674#M3934</link>
      <description>Here is the code fragment I used in IBM Mainframe to read Zoned decimal data in the format S9(13)V99&lt;BR /&gt;
&lt;BR /&gt;
 OPTIONS NOCENTRE;                           &lt;BR /&gt;
 DATA FILE1;                                 &lt;BR /&gt;
 INFILE INPUT1;                              &lt;BR /&gt;
    INPUT @51 REW_AMT ZD15.2;                &lt;BR /&gt;
PROC PRINT DATA=FILE1;                       &lt;BR /&gt;
&lt;BR /&gt;
The REW_AMT in the input file looks&lt;BR /&gt;
5----+----6----+&lt;BR /&gt;
****************&lt;BR /&gt;
 00000000001630{&lt;BR /&gt;
 00000000009630{&lt;BR /&gt;
 00000000006630{&lt;BR /&gt;
 00000000005630{&lt;BR /&gt;
 00000000003630{&lt;BR /&gt;
&lt;BR /&gt;
The SASLIST has correct output but surprisingly for some of the observations, the REW_AMT field is in floating point format (observation 5). We are using SAS 8.2 version.&lt;BR /&gt;
&lt;BR /&gt;
Obs    REW_AMT   &lt;BR /&gt;
                 &lt;BR /&gt;
  1      163     &lt;BR /&gt;
  2      963     &lt;BR /&gt;
  3      663     &lt;BR /&gt;
  4      563     &lt;BR /&gt;
  5      363.00&lt;BR /&gt;
&lt;BR /&gt;
Please help me in fixing the error.</description>
      <pubDate>Sun, 26 Apr 2009 09:22:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-and-displaying-Zoned-decimal-S9-13-V99/m-p/23674#M3934</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-26T09:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading and displaying Zoned decimal S9(13)V99</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-and-displaying-Zoned-decimal-S9-13-V99/m-p/23675#M3935</link>
      <description>Define a SAS FORMAT statement, either in the DATA step or with PROC PRINT execution.  Using the SEARCH facility at the SAS support  &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;  website, I found the link below:&lt;BR /&gt;
&lt;BR /&gt;
Working with Packed Decimal and Zoned Decimal Data&lt;BR /&gt;
&lt;A href="http://v8doc.sas.com/sashtml/lrcon/z1265705.htm" target="_blank"&gt;http://v8doc.sas.com/sashtml/lrcon/z1265705.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
Also, you really should consider upgrading SAS to a more current (and fully supported) version in the near future.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sun, 26 Apr 2009 13:36:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-and-displaying-Zoned-decimal-S9-13-V99/m-p/23675#M3935</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-26T13:36:10Z</dc:date>
    </item>
  </channel>
</rss>

