<?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: Problem with x command in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430300#M281593</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad I could be of help.&lt;/P&gt;
&lt;P&gt;What did you find?&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2018 06:49:05 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2018-01-24T06:49:05Z</dc:date>
    <item>
      <title>Problem with x command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430292#M281590</link>
      <description>&lt;P&gt;The below command is not working properly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;x " tac &amp;amp;archivefile. | awk '!NF {print ""};NF {if (n) {print} else {n=1}}' | tac &amp;gt; &amp;nbsp;&amp;amp;rawfile. ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally it should create a &amp;amp;rawfile with some lines,ignoring last non empty line from archive file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it is creating just an empty &amp;amp;rawfile.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no problem with the linux command,it is worling fine in linux .&lt;/P&gt;&lt;P&gt;The comand is shown below after resolving the macro variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ tac APPDIRECT_PROD_2018011107.dat | awk '!NF {print ""};NF {if (n) {print} else {n=1}}' | tac &amp;gt; /vfau/vfau_sit/sit05/datain/AppDirect/Landing/APPDIRECT_PROD_2018011107.dat&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly the problem with my x command ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 05:21:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430292#M281590</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2018-01-24T05:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with x command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430293#M281591</link>
      <description>&lt;P&gt;Add&lt;/P&gt;
&lt;PRE&gt;2&amp;gt;&amp;amp;1&lt;/PRE&gt;
&lt;P&gt;to the end of your command, and you'll find any eventual error message(s) in your .dat file.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 05:34:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430293#M281591</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-24T05:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with x command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430299#M281592</link>
      <description>Thank you sir!!</description>
      <pubDate>Wed, 24 Jan 2018 06:42:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430299#M281592</guid>
      <dc:creator>sfffdg</dc:creator>
      <dc:date>2018-01-24T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with x command</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430300#M281593</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad I could be of help.&lt;/P&gt;
&lt;P&gt;What did you find?&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 06:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Problem-with-x-command/m-p/430300#M281593</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-01-24T06:49:05Z</dc:date>
    </item>
  </channel>
</rss>

