<?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 x statement output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10459#M802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what man or bdf do.&amp;nbsp; Do they result in sas files or text files or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2012 15:55:14 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-02-22T15:55:14Z</dc:date>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10457#M800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;How can i send output of x statement into&lt;/P&gt;&lt;P&gt; a dataset. By using the below code the dataset is created&lt;/P&gt;&lt;P&gt;but i am unable to open the dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;X 'man bdf&amp;gt;&amp;gt;/sys/man.sas7bdat';&lt;/P&gt;&lt;P&gt;X 'bdf&amp;gt;&amp;gt;/sys/bdf.sas7bdat';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 15:48:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10457#M800</guid>
      <dc:creator>KarthikSrivasthav</dc:creator>
      <dc:date>2012-02-22T15:48:51Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10458#M801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; It would help if you can post more details. what do you have in 'bdf'?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 15:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10458#M801</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-22T15:54:18Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10459#M802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know what man or bdf do.&amp;nbsp; Do they result in sas files or text files or something else?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 15:55:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10459#M802</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-02-22T15:55:14Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10460#M803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bdf or df&amp;nbsp; command will give details about data usage and the percent of data occupied&lt;/P&gt;&lt;P&gt;in the server according to directory and file wise&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:07:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10460#M803</guid>
      <dc:creator>KarthikSrivasthav</dc:creator>
      <dc:date>2012-02-22T16:07:15Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10461#M804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best approach would be moving the results to text file and then converting the text file to data set. Give it a try.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:16:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10461#M804</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-22T16:16:00Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10462#M805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hima i already tried that way i got the result&lt;/P&gt;&lt;P&gt;But i need to send directly to a sas data set&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:23:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10462#M805</guid>
      <dc:creator>KarthikSrivasthav</dc:creator>
      <dc:date>2012-02-22T16:23:22Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10463#M806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Can you post the results of man bdf? It would greater visibilty for me to help you solve this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:26:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10463#M806</guid>
      <dc:creator>Hima</dc:creator>
      <dc:date>2012-02-22T16:26:49Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10464#M807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'bdf' and 'df' are pretty much the same thing, they have a different default block-size is all, I think.&amp;nbsp; The 'man' command requests the manual information for a command, and I cannot be sure what purpose this is being called for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;&lt;P&gt;KarthikSrivasthav wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="jive-rendered-content"&gt;&lt;P&gt;X 'man bdf&amp;gt;&amp;gt;/sys/man.sas7bdat';&lt;/P&gt;&lt;P&gt;X 'bdf&amp;gt;&amp;gt;/sys/bdf.sas7bdat';&lt;/P&gt;&lt;/DIV&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These commands will create two text files in /sys/ with the erronious extention of sas7bdat.&amp;nbsp; Just using the sas dataset extention does not convert this output to a valid data format for SAS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way you will want to accomplish this task is to use filename statement with the pipe engine to read the stdout from the system commands into a SAS data step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename foo pipe 'df -hTP';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data foo;&lt;/P&gt;&lt;P&gt; infile foo lrecl=512 firstobs=2 truncover;&lt;/P&gt;&lt;P&gt; input (filesystem type size used avail usepct mounted_on) (:$64.);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2012 16:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10464#M807</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2012-02-22T16:55:39Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10465#M808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As FriedEgg said, you need PIPE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;filename x pipe 'dir c:\';
data want;
infile x length=len;
input row $varying200. len ;
run;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 08:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10465#M808</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-02-23T08:24:00Z</dc:date>
    </item>
    <item>
      <title>x statement output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10466#M809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Its working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Feb 2012 16:35:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/x-statement-output/m-p/10466#M809</guid>
      <dc:creator>KarthikSrivasthav</dc:creator>
      <dc:date>2012-02-23T16:35:57Z</dc:date>
    </item>
  </channel>
</rss>

