<?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: Can I read the program/dataset involved once to complete this job below: in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-read-the-program-dataset-involved-once-to-complete-this/m-p/79960#M256586</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is it you want to accomplish?&amp;nbsp; If it is just getting counts of missing and non-missing values, take a look at:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.ats.ucla.edu/stat/sas/faq/nummiss_sas.htm" title="http://www.ats.ucla.edu/stat/sas/faq/nummiss_sas.htm"&gt;SAS FAQ: How can I see the number of missing values and patterns of missing valuesin my data file?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can get a list or file of all variable names using dictionary.columns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Nov 2012 14:22:07 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-11-26T14:22:07Z</dc:date>
    <item>
      <title>Can I read the program/dataset involved once to complete this job below:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-read-the-program-dataset-involved-once-to-complete-this/m-p/79959#M256585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN class="text"&gt;I wanted to write the program in one pass where the data is read once for all variable and observations and not many times to complete the job belowDtaonce for : &lt;BR /&gt; &lt;BR /&gt; %do i=1 %to &amp;amp;no_var; &lt;BR /&gt; proc sql; &lt;BR /&gt; create table var&amp;amp;i as &lt;BR /&gt; select &amp;amp;&amp;amp;name&amp;amp;i from a; &lt;BR /&gt; quit; &lt;BR /&gt; %end; &lt;BR /&gt; &lt;BR /&gt; %do i=1 %to &amp;amp;no_var; &lt;BR /&gt; proc sql noprint; &lt;BR /&gt; create table miss&amp;amp;i as &lt;BR /&gt; select count(*)/&amp;amp;no_obs as mlsing &lt;BR /&gt; from var&amp;amp;i &lt;BR /&gt; where &amp;amp;&amp;amp;name&amp;amp;i=.; &lt;BR /&gt; quit; &lt;BR /&gt; %end; &lt;BR /&gt; &lt;BR /&gt; %do i=1 %to &amp;amp;no_var; &lt;BR /&gt; proc sql noprint; &lt;BR /&gt; create table zero&amp;amp;i as &lt;BR /&gt; select count(*)/&amp;amp;no_obs as zlrou &lt;BR /&gt; from var&amp;amp;i &lt;BR /&gt; where &amp;amp;&amp;amp;name&amp;amp;i=0; &lt;BR /&gt; quit; &lt;BR /&gt; %end; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 12:12:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-read-the-program-dataset-involved-once-to-complete-this/m-p/79959#M256585</guid>
      <dc:creator>dapsy</dc:creator>
      <dc:date>2012-11-26T12:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I read the program/dataset involved once to complete this job below:</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-read-the-program-dataset-involved-once-to-complete-this/m-p/79960#M256586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is it you want to accomplish?&amp;nbsp; If it is just getting counts of missing and non-missing values, take a look at:&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.ats.ucla.edu/stat/sas/faq/nummiss_sas.htm" title="http://www.ats.ucla.edu/stat/sas/faq/nummiss_sas.htm"&gt;SAS FAQ: How can I see the number of missing values and patterns of missing valuesin my data file?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, you can get a list or file of all variable names using dictionary.columns&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 14:22:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-read-the-program-dataset-involved-once-to-complete-this/m-p/79960#M256586</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-11-26T14:22:07Z</dc:date>
    </item>
  </channel>
</rss>

