<?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: Mainframe to SAS in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112269#M23218</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1f6ogvbxp663tn13icvl1197roj.htm" title="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1f6ogvbxp663tn13icvl1197roj.htm"&gt;SAS(R) 9.4 Formats and Informats: Reference&lt;/A&gt; (&lt;A id="n1f6ogvbxp663tn13icvl1197roj"&gt;&lt;/A&gt;S370FPD&lt;SPAN class="xis-userSuppliedValue"&gt;w&lt;/SPAN&gt;.&lt;SPAN class="xis-userSuppliedValue"&gt;d&lt;/SPAN&gt; Informat )&lt;/P&gt;&lt;P&gt;The last part of text is telling the cobol equivalents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest approach is assuming the SAS code is also run on a mainframe.&lt;/P&gt;&lt;P&gt;You could read SAS mainframe data on other machines.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The transfer must be binary and record information (input statement) given,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 17 Aug 2013 08:49:50 GMT</pubDate>
    <dc:creator>jakarman</dc:creator>
    <dc:date>2013-08-17T08:49:50Z</dc:date>
    <item>
      <title>Mainframe to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112264#M23213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Need help with informats for the follwoing.&lt;/P&gt;&lt;P&gt;&amp;nbsp; I'm reading a Mainframe file to SAS. The fields on Mainframe file have the following formats:&lt;/P&gt;&lt;P&gt; Date:&amp;nbsp;&amp;nbsp; PICTURE S9(7)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startling at column 1 and ending at column 7. The length is 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Time:&amp;nbsp; Picture 9(6) &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startling at column 8 and ending at column 16. The length is 6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GRP-CD:&amp;nbsp; picture&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X(4)&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; &lt;/P&gt;&lt;P&gt;&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; startling at column 66&amp;nbsp;&amp;nbsp; and ending at column&amp;nbsp;&amp;nbsp; 69.The length is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 17:33:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112264#M23213</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2013-08-15T17:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Mainframe to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112265#M23214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Found this - an oldie but a goodie ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/techsup/unotes/V6/2/2503.html" title="http://support.sas.com/techsup/unotes/V6/2/2503.html"&gt;V6 SAS Note: SAS informats that correspond to COBOL data descriptions&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 17:54:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112265#M23214</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2013-08-15T17:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Mainframe to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112266#M23215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks 0s2.but it is confusing.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 17:59:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112266#M23215</guid>
      <dc:creator>SASPhile</dc:creator>
      <dc:date>2013-08-15T17:59:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mainframe to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112267#M23216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My recommendation has always been to find the oldest person in the IS department and ask them about this stuff.&amp;nbsp; We still use COBOL code written in 1992 for god's sake.&amp;nbsp; Warning - when you do ask them prepare to have your ears talked off about the "good old days" when men were men and computers were as big as your living room.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 18:16:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112267#M23216</guid>
      <dc:creator>OS2Rules</dc:creator>
      <dc:date>2013-08-15T18:16:54Z</dc:date>
    </item>
    <item>
      <title>Re: Mainframe to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112268#M23217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SASPhile,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The informats to be used for reading the specified mainframe fields should be as :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INPUT&lt;/P&gt;&lt;P&gt;&amp;nbsp; @1&amp;nbsp; Date&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATE7.&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; &lt;/P&gt;&lt;P&gt;&amp;nbsp; @8&amp;nbsp; Time&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; PD6.&lt;/P&gt;&lt;P&gt;&amp;nbsp; @66 GRP-CD&amp;nbsp;&amp;nbsp; $CHAR4.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explanantion :&lt;/P&gt;&lt;P&gt;It would be more clear if you provide the some examples of data for the date and time field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;1. Date:&amp;nbsp;&amp;nbsp; PICTURE S9(7)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startling at column 1 and ending at column 7. The length is 7&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;-&lt;/STRONG&gt;&amp;gt; COBOL format : PIC S9(7) &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Generally, we use ZD7. as an informat to read this type of data as S9(7) represents signed data with 7 numeric digits. But in your case, we are reading a date so a date with 7 length, the informat to be used should be DATE7. &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;2. Time:&amp;nbsp; Picture 9(6)&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; startling at column 8 and ending at column 16. The length is 6&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;-&amp;gt; COBOL format : PIC 9(6)&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Generally, to read this type of data if it is standard numeric data the informat to be used should be 6.But in you case the starting column is 8 and ending column is 16 so total number of columns to be read equals to 9. So, this type of data should be Packed Decimal Data.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;To read this type data we have informat&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG&gt;PDw.d&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;w is the total number of bytes the field takes up on the record(not the total number of digits). d represents the number of digits to the right of the decimal point. The d value is 0-10.&lt;/LI&gt;&lt;LI&gt;To calculate w, the length of a packed field, use the following formula&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Total Digits/2) + 1/2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Round his number if it ends in 1/2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. GRP-CD:&amp;nbsp; picture&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; X(4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;&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; startling at column 66&amp;nbsp;&amp;nbsp; and ending at column&amp;nbsp;&amp;nbsp; 69.The length is 4.&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;STRONG&gt;-&amp;gt;&lt;/STRONG&gt; COBOL format : PIC X(4)&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;This format means we are reading 4 character digits. So, this type of data can be read using the informat $CHAR4. as the variable GRP-CD may have leading zeroes.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;It would be great if you specify some examples that would show the clear view of what exactly are you going to read.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Aug 2013 07:38:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112268#M23217</guid>
      <dc:creator>Sanyam</dc:creator>
      <dc:date>2013-08-17T07:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mainframe to SAS</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112269#M23218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1f6ogvbxp663tn13icvl1197roj.htm" title="http://support.sas.com/documentation/cdl/en/leforinforref/64790/HTML/default/viewer.htm#n1f6ogvbxp663tn13icvl1197roj.htm"&gt;SAS(R) 9.4 Formats and Informats: Reference&lt;/A&gt; (&lt;A id="n1f6ogvbxp663tn13icvl1197roj"&gt;&lt;/A&gt;S370FPD&lt;SPAN class="xis-userSuppliedValue"&gt;w&lt;/SPAN&gt;.&lt;SPAN class="xis-userSuppliedValue"&gt;d&lt;/SPAN&gt; Informat )&lt;/P&gt;&lt;P&gt;The last part of text is telling the cobol equivalents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest approach is assuming the SAS code is also run on a mainframe.&lt;/P&gt;&lt;P&gt;You could read SAS mainframe data on other machines.&amp;nbsp; &lt;/P&gt;&lt;P&gt;The transfer must be binary and record information (input statement) given,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 17 Aug 2013 08:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Mainframe-to-SAS/m-p/112269#M23218</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2013-08-17T08:49:50Z</dc:date>
    </item>
  </channel>
</rss>

