<?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: Zoned Decimal informat in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379334#M91302</link>
    <description>&lt;P&gt;That looks like a problem when the file was copied from the mainframe. Be aware that mainframe codepages may have an influence here.&lt;/P&gt;
&lt;P&gt;That's why I used to copy mainframe files in binary mode and use the s370 informats on UNIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inspect the hex codes of the offending characters on the MF and after transfer on the new platform. Once you find a rule, read the data first as character, then translate the bad characters, and finallly use FZD. in an input statement.&lt;/P&gt;
&lt;P&gt;Unless you can fix the transfer problem, of course.&lt;/P&gt;</description>
    <pubDate>Wed, 26 Jul 2017 11:14:05 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2017-07-26T11:14:05Z</dc:date>
    <item>
      <title>Zoned Decimal informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379314#M91297</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have below data in a file and i want to read in a dataset&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;this is how file looks&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;00000000134623C&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;00000000153746E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;00000000000085G&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;00000000017120E&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;Atually I am trying to read this file on SAS eg &amp;nbsp;tool.Actaully thiS program was running on mainframe and they were reading this like this &amp;nbsp;@1 mark S370FZD15.2&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;I am trying to read it as &amp;nbsp;@1 mark 15.2 but it&amp;nbsp;gives me error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;I want output to be&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;13642.33&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;15374.65&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;8.57&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;1712.05&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="x_MsoNormal"&gt;&lt;SPAN&gt;Thanks!!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 10:16:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379314#M91297</guid>
      <dc:creator>Rohit12</dc:creator>
      <dc:date>2017-07-26T10:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Zoned Decimal informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379320#M91300</link>
      <description>&lt;P&gt;Using "base sas" as a subject line in the &lt;EM&gt;Base SAS&lt;/EM&gt; Programming forum is, ahem, not very descriptive.&lt;/P&gt;
&lt;P&gt;Therefore I changed your subject line.&lt;/P&gt;
&lt;P&gt;When reading the &lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/69823/HTML/default/viewer.htm#p0rpil7q2fjyd0n12baih7umq6xj.htm" target="_blank"&gt;documentation for the S370FZD informat&lt;/A&gt;, you'll notice a reference to the FZD informat, which does the same without converting from the mainframe's EBCDIC character set.&lt;/P&gt;
&lt;P&gt;So do this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input mark zd15.2;
cards;
00000000134623C
00000000153746E
00000000000085G
00000000017120E
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 10:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379320#M91300</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-26T10:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: Zoned Decimal informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379329#M91301</link>
      <description>hello Kurt&lt;BR /&gt;&lt;BR /&gt;sorry for putting wrong subject&lt;BR /&gt;&lt;BR /&gt;Actually one of the values 00000000000529æ having this character æ is not coming correct .The output for this value comes as . But in mainframe it is coming as 52.90&lt;BR /&gt;&lt;BR /&gt;How can I get that .Please guide&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;input mark zd15.2;&lt;BR /&gt;cards;&lt;BR /&gt;00000000134623C&lt;BR /&gt;00000000153746E&lt;BR /&gt;00000000000085G&lt;BR /&gt;00000000017120E&lt;BR /&gt;00000000000529æ&lt;BR /&gt;;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Wed, 26 Jul 2017 10:55:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379329#M91301</guid>
      <dc:creator>Rohit12</dc:creator>
      <dc:date>2017-07-26T10:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Zoned Decimal informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379334#M91302</link>
      <description>&lt;P&gt;That looks like a problem when the file was copied from the mainframe. Be aware that mainframe codepages may have an influence here.&lt;/P&gt;
&lt;P&gt;That's why I used to copy mainframe files in binary mode and use the s370 informats on UNIX.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Inspect the hex codes of the offending characters on the MF and after transfer on the new platform. Once you find a rule, read the data first as character, then translate the bad characters, and finallly use FZD. in an input statement.&lt;/P&gt;
&lt;P&gt;Unless you can fix the transfer problem, of course.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2017 11:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379334#M91302</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-26T11:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Zoned Decimal informat</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379349#M91305</link>
      <description>&lt;P&gt;PS&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Workaround" code could look like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
input markstr $15.;
markstr = translate(markstr,'F','e6'x);
mark = input(markstr,zd15.2);
cards;
00000000134623C
00000000153746E
00000000000085G
00000000017120E
00000000000529æ
;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 26 Jul 2017 12:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Zoned-Decimal-informat/m-p/379349#M91305</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-07-26T12:03:00Z</dc:date>
    </item>
  </channel>
</rss>

