<?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 Reading Mainframe file via EG Linux in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178626#M302627</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(1)&amp;nbsp; I have a column of data that looks has either a positive amount or a negative number.&amp;nbsp; The data is suppose to be formatted 12.2&lt;BR /&gt;For example:&amp;nbsp; &lt;BR /&gt;FRED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000002300086&lt;BR /&gt;BARNEY&amp;nbsp;&amp;nbsp; -99999999999&lt;/P&gt;&lt;P&gt;Fred's amount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23,000.86&amp;nbsp;&amp;nbsp; and&lt;BR /&gt;Barney's amount =&amp;nbsp; -99999999.99&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Variable Name that I am having trouble with is:&amp;nbsp; TotalRewardCash shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) A second question I have is the Variable PeriodId is yyyymmdd and I would like to read it in as a date, but couldn't find an ebcdic format that would work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA CCARD_RAW_DATA;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INFILE COMMCARD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INPUT &lt;/P&gt;&lt;P&gt;@1 ReferenceNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC12.&lt;/P&gt;&lt;P&gt;@13 CustomerID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC12.&lt;/P&gt;&lt;P&gt;@25 BankId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC12.&lt;/P&gt;&lt;P&gt;@37 PeriodId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC8.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;@135 TotalRewardCash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S370FZDU12.2 ;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried many informats but this one gets me the closest.&amp;nbsp; It brings in the numbers but will not bring in the leading negative sign.&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp;&amp;nbsp; S370FZDL12.2 but then I get nothing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 May 2014 14:26:52 GMT</pubDate>
    <dc:creator>Linda_V</dc:creator>
    <dc:date>2014-05-30T14:26:52Z</dc:date>
    <item>
      <title>Reading Mainframe file via EG Linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178626#M302627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(1)&amp;nbsp; I have a column of data that looks has either a positive amount or a negative number.&amp;nbsp; The data is suppose to be formatted 12.2&lt;BR /&gt;For example:&amp;nbsp; &lt;BR /&gt;FRED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 000002300086&lt;BR /&gt;BARNEY&amp;nbsp;&amp;nbsp; -99999999999&lt;/P&gt;&lt;P&gt;Fred's amount&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 23,000.86&amp;nbsp;&amp;nbsp; and&lt;BR /&gt;Barney's amount =&amp;nbsp; -99999999.99&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Variable Name that I am having trouble with is:&amp;nbsp; TotalRewardCash shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) A second question I have is the Variable PeriodId is yyyymmdd and I would like to read it in as a date, but couldn't find an ebcdic format that would work properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA CCARD_RAW_DATA;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INFILE COMMCARD;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; INPUT &lt;/P&gt;&lt;P&gt;@1 ReferenceNumber&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC12.&lt;/P&gt;&lt;P&gt;@13 CustomerID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC12.&lt;/P&gt;&lt;P&gt;@25 BankId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC12.&lt;/P&gt;&lt;P&gt;@37 PeriodId&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $EBCDIC8.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;@135 TotalRewardCash&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; S370FZDU12.2 ;&lt;/P&gt;&lt;P&gt;RUN;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried many informats but this one gets me the closest.&amp;nbsp; It brings in the numbers but will not bring in the leading negative sign.&lt;/P&gt;&lt;P&gt;I have tried&amp;nbsp;&amp;nbsp; S370FZDL12.2 but then I get nothing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 14:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178626#M302627</guid>
      <dc:creator>Linda_V</dc:creator>
      <dc:date>2014-05-30T14:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Mainframe file via EG Linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178627#M302628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you are running this code in a mainframe you do not the $EBCDIC coding the $ coding will do as Ebcdic is default in z/OS.&lt;BR /&gt;When you have downloaded the file binary, beware of record formats. Sometimes you get trapped by cr/lf characters as part of numeric values.&lt;/P&gt;&lt;P&gt;There are several dedicated numeric formats at z/OS.&lt;/P&gt;&lt;P&gt;- floating often not used with Cobol.&lt;/P&gt;&lt;P&gt;- packed (with signs) the two digits are getting compressed by their hexadecimal representation&lt;BR /&gt;- Zoned&amp;nbsp; (with signs) the digits are not compressed but the last digit is with the sign. &lt;BR /&gt;- character based. Similar to zoned but not having signs. It is more a constraint on some values on the used chars.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have used the unsigned zoned type. No wonder you no signs&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#p0eh2rd17q8m9nn16a2ht42an5ju.htm" title="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#p0eh2rd17q8m9nn16a2ht42an5ju.htm"&gt;SAS(R) 9.4 Formats and Informats: Reference&lt;/A&gt;&amp;nbsp; &lt;A id="p0eh2rd17q8m9nn16a2ht42an5ju"&gt;&lt;/A&gt;S370FZD&lt;SPAN class="xis-userSuppliedValue"&gt;w&lt;/SPAN&gt;.&lt;SPAN class="xis-userSuppliedValue"&gt;d&lt;/SPAN&gt; Informat is most common. Watch the notes on the used Cobol Picture. When you know that one you are sure wich format to be used. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:02:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178627#M302628</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-05-30T15:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Mainframe file via EG Linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178628#M302629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not using Mainframe SAS to read the file.&amp;nbsp;&amp;nbsp; I use Enterprise Guide interface and read the Mainframe file via FTP statement.&amp;nbsp; That is why I need to use the EBCDIC informats to read my data in.&amp;nbsp; Otherwise I get gibberish. &lt;/P&gt;&lt;P&gt;I have tried all of the file formats listed and none of them get me the desired results.&lt;/P&gt;&lt;P&gt;I will review the website to see if I missed any.&amp;nbsp; Thanks anyway..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 15:18:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178628#M302629</guid>
      <dc:creator>Linda_V</dc:creator>
      <dc:date>2014-05-30T15:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: Reading Mainframe file via EG Linux</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178629#M302630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update...&lt;/P&gt;&lt;P&gt;I got it to work...&amp;nbsp;&amp;nbsp; The INFORMAT can be 12.2 but then I need to FORMAT it bigger....&amp;nbsp; 14.2 to fit the decimal sign and the leading minus sign... YAY!!!&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 16:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-Mainframe-file-via-EG-Linux/m-p/178629#M302630</guid>
      <dc:creator>Linda_V</dc:creator>
      <dc:date>2014-05-30T16:05:12Z</dc:date>
    </item>
  </channel>
</rss>

