<?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: 9(7) Comp-3 read into S370FPD4. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/248459#M46682</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi﻿&lt;/a&gt;. You were absolutely correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to use SYSOPTS=":DATATYPE=BINARY:XLATE=NO" from Z/OS and on the Unix/receiving end, I used SYSOPTS=":XLATE=NO:" to transfer the data so the packed values are not disturbed in cross-platform transfer. The team sending this file wanted to use NDM hence I had to limit myself to test with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing I noticed was that, even values that were read as a character on Z/OS as $3. or $10. were transformed and ended up reading with S370FZn. format and $EBCDICn. format for a alpha value. &amp;nbsp;It was fun hunting down those NDM options and formats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to give an update. &amp;nbsp;Thx.&lt;/P&gt;</description>
    <pubDate>Sat, 06 Feb 2016 05:07:19 GMT</pubDate>
    <dc:creator>kannand</dc:creator>
    <dc:date>2016-02-06T05:07:19Z</dc:date>
    <item>
      <title>9(7) Comp-3 read into S370FPD4.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245594#M45853</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm given a file that was sourced from mainframe but now is with me on Unix as a .txt file. &amp;nbsp; There are some numeric variables stored in 4 bytes that were defined on the mainframe as 9(7) Comp-3 types in the corresponding Cobol copybook. &amp;nbsp; I tried reading in a mainframe SAS pgm, a copy of this file available on the mainframe as PD4. and works fine. &amp;nbsp; I ran the same code in Unix SAS but displays as "." &amp;nbsp;so &amp;nbsp;I tried reading with S370FPD4., PD4. , PK4 but no luck. any clue of what might be happening.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;fyi - I am able to read the vars before and after this date vars with no issues. &amp;nbsp;Should I be reading this in a different way ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 03:43:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245594#M45853</guid>
      <dc:creator>kannand</dc:creator>
      <dc:date>2016-01-23T03:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: 9(7) Comp-3 read into S370FPD4.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245595#M45854</link>
      <description>What does it look like in text editor?</description>
      <pubDate>Sat, 23 Jan 2016 03:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245595#M45854</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-23T03:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: 9(7) Comp-3 read into S370FPD4.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245600#M45855</link>
      <description>&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/1563iEA930B44DC552366/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="20160122_225654-1-1.jpg" title="20160122_225654-1-1.jpg" /&gt;&lt;STRONG&gt;in the first record, &amp;nbsp;the data starting from 840 till 1881 &amp;nbsp;is read as chars. The next 4 bytes starting with C followed by gibberish chars form the first comp-3 field followed by a 2 byte number followed by 2 more comp fields. &amp;nbsp;The actual value of the first comp field is 1151123. Hope I'm clear. Thanks for looking into this.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:07:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245600#M45855</guid>
      <dc:creator>kannand</dc:creator>
      <dc:date>2016-01-23T04:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: 9(7) Comp-3 read into S370FPD4.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245605#M45857</link>
      <description>&lt;P&gt;Sorry...what should it look like.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not that familiar with these types of things, but my guess is you may also need to change the encoding.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could entirely incorrect though.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 04:33:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245605#M45857</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-01-23T04:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: 9(7) Comp-3 read into S370FPD4.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245613#M45858</link>
      <description>&lt;P&gt;This SAS note will help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/56/654.html" target="_blank"&gt;http://support.sas.com/kb/56/654.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also to use S370 informats the data file must be copied from the mainframe to Unix using a BINARY transfer (no conversion from EBCDIC to ASCII). If the text fields contain readable letters (ABC) then the file was not copied in BINARY format.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 23 Jan 2016 06:22:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/245613#M45858</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2016-01-23T06:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: 9(7) Comp-3 read into S370FPD4.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/248459#M46682</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi﻿&lt;/a&gt;. You were absolutely correct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had to use SYSOPTS=":DATATYPE=BINARY:XLATE=NO" from Z/OS and on the Unix/receiving end, I used SYSOPTS=":XLATE=NO:" to transfer the data so the packed values are not disturbed in cross-platform transfer. The team sending this file wanted to use NDM hence I had to limit myself to test with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing I noticed was that, even values that were read as a character on Z/OS as $3. or $10. were transformed and ended up reading with S370FZn. format and $EBCDICn. format for a alpha value. &amp;nbsp;It was fun hunting down those NDM options and formats.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just wanted to give an update. &amp;nbsp;Thx.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2016 05:07:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/9-7-Comp-3-read-into-S370FPD4/m-p/248459#M46682</guid>
      <dc:creator>kannand</dc:creator>
      <dc:date>2016-02-06T05:07:19Z</dc:date>
    </item>
  </channel>
</rss>

