<?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 last non blank record from dat file in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429016#M281463</link>
    <description>&lt;P&gt;It is like reading XXXXX from the below file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADJJSHJBSJJAJS&lt;/P&gt;&lt;P&gt;SJHDBSJSJJSJ&lt;/P&gt;&lt;P&gt;XXXXX&lt;/P&gt;&lt;P&gt;&amp;lt;Blankrecord&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Blankrecord&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 06:47:06 GMT</pubDate>
    <dc:creator>sfffdg</dc:creator>
    <dc:date>2018-01-19T06:47:06Z</dc:date>
    <item>
      <title>Reading last non blank record from dat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429009#M281462</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am trying to get last non blank record from an external file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filename ocmd pipe "awk '/./{line=$0} END{print line}' /vfau/vfau_sit/sit05/datain/AppDirect/Landing/APPDIRECT_PROD_2018011105.dat"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;filename ocmd pipe "tac /vfau/vfau_sit/sit05/datain/AppDirect/Landing/APPDIRECT_PROD_2018011105.dat | egrep -m 1 ."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But our company has no Goptions accesible..and i am getting error like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 23-2: Invalid option name GOPTIONS.&lt;/P&gt;&lt;P&gt;25 ! GOPTIONS NOACCESSIBLE;&lt;BR /&gt;____________&lt;BR /&gt;23&lt;BR /&gt;ERROR: Error in the FILENAME statement.&lt;BR /&gt;ERROR 23-2: Invalid option name NOACCESSIBLE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any other approach?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 05:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429009#M281462</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2018-01-19T05:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading last non blank record from dat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429016#M281463</link>
      <description>&lt;P&gt;It is like reading XXXXX from the below file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ADJJSHJBSJJAJS&lt;/P&gt;&lt;P&gt;SJHDBSJSJJSJ&lt;/P&gt;&lt;P&gt;XXXXX&lt;/P&gt;&lt;P&gt;&amp;lt;Blankrecord&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;Blankrecord&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 06:47:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429016#M281463</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2018-01-19T06:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reading last non blank record from dat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429021#M281464</link>
      <description>&lt;P&gt;All SAS statements end with a semicolon ";"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you are missing this&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 07:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429021#M281464</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-19T07:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Reading last non blank record from dat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429025#M281465</link>
      <description>With semicolon only am getting the error as our company does not have access to goptions</description>
      <pubDate>Fri, 19 Jan 2018 07:35:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429025#M281465</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2018-01-19T07:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: Reading last non blank record from dat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429031#M281466</link>
      <description>I guess you are running this with SAS Enteprise Guide as the front end. &lt;BR /&gt;&lt;BR /&gt;Please post the complete log as attachment or as a code block (the {} symbol in the editor)</description>
      <pubDate>Fri, 19 Jan 2018 07:43:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429031#M281466</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2018-01-19T07:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Reading last non blank record from dat file</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429051#M281467</link>
      <description>&lt;P&gt;Goptions has nothing to do with the code you are running - which is a command line command which you do need access for.&amp;nbsp; You can turn goptions off to get rid of this error:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Enterprise-Guide/Turning-off-goptions-in-SAS-EG-code-node/td-p/139509" target="_blank"&gt;https://communities.sas.com/t5/SAS-Enterprise-Guide/Turning-off-goptions-in-SAS-EG-code-node/td-p/139509&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And docs:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#goptionschap.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/graphref/63022/HTML/default/viewer.htm#goptionschap.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However that will not solve your connection to the OS which may be turned off by default by your IT group - this is often the case.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 09:02:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Reading-last-non-blank-record-from-dat-file/m-p/429051#M281467</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-01-19T09:02:05Z</dc:date>
    </item>
  </channel>
</rss>

