<?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 someone tell me what this all means? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Can-someone-tell-me-what-this-all-means/m-p/29944#M7060</link>
    <description>Thanks for explaining that.&lt;BR /&gt;
It helped.&lt;BR /&gt;
&lt;BR /&gt;
Nancy</description>
    <pubDate>Wed, 02 Jun 2010 13:46:37 GMT</pubDate>
    <dc:creator>SASHunter</dc:creator>
    <dc:date>2010-06-02T13:46:37Z</dc:date>
    <item>
      <title>Can someone tell me what this all means?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-someone-tell-me-what-this-all-means/m-p/29942#M7058</link>
      <description>I have the following macro that I was looking at, but need more explanations of what one part is made up of :&lt;BR /&gt;
&lt;BR /&gt;
/* Loops through the directory */                                                                                                  &lt;BR /&gt;
	   %do i = 1 %to &amp;amp;memcnt;&lt;BR /&gt;
	     		&lt;BR /&gt;
	     	%let fname=%qscan(%qsysfunc(dread(&amp;amp;did,&amp;amp;i)),1,.);&lt;BR /&gt;
		 %let testname=%substr(&amp;amp;fname,1,4);&lt;BR /&gt;
		 &lt;BR /&gt;
		 %if &amp;amp;testname = capi or &amp;amp;testname = cati %then %do;&lt;BR /&gt;
&lt;BR /&gt;
		 	* delete the file;&lt;BR /&gt;
			proc datasets library=lhost;&lt;BR /&gt;
					delete &amp;amp;fname.;&lt;BR /&gt;
			run;&lt;BR /&gt;
			quit;	 	&lt;BR /&gt;
	     %end; &lt;BR /&gt;
%end;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
The one I need more info on is the %qscan statement.  I don't know what the number one is for or the (.).&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Nancy</description>
      <pubDate>Tue, 01 Jun 2010 20:05:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-someone-tell-me-what-this-all-means/m-p/29942#M7058</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-06-01T20:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone tell me what this all means?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-someone-tell-me-what-this-all-means/m-p/29943#M7059</link>
      <description>Hi:&lt;BR /&gt;
  From the doc:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#/documentation/cdl/en/mcrolref/61885/HTML/default/z3514scan.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/viewer.htm#/documentation/cdl/en/mcrolref/61885/HTML/default/z3514scan.htm&lt;/A&gt;&lt;BR /&gt;
  &lt;BR /&gt;
%QSCAN(argument, n&amp;lt;,charlist &amp;lt;,modifiers&amp;gt;&amp;gt;) &lt;BR /&gt;
 &lt;BR /&gt;
by that documentation, then your %QSCAN breaks down as:&lt;BR /&gt;
&lt;BR /&gt;
%QSCAN(&lt;BR /&gt;
argument is %qsysfunc(dread(&amp;amp;did,&amp;amp;i))&lt;BR /&gt;
n is 1&lt;BR /&gt;
charlist is .&lt;BR /&gt;
there are no modifiers to the %QSCAN&lt;BR /&gt;
 &lt;BR /&gt;
You can look up what N is in the documentation for %QSCAN. Basically, &amp;amp;FNAME will be set to the first chunk of whatever is returned by %QSYSFUNC invocation of the DREAD function delimited by the . (or period).&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 01 Jun 2010 20:44:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-someone-tell-me-what-this-all-means/m-p/29943#M7059</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-06-01T20:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can someone tell me what this all means?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Can-someone-tell-me-what-this-all-means/m-p/29944#M7060</link>
      <description>Thanks for explaining that.&lt;BR /&gt;
It helped.&lt;BR /&gt;
&lt;BR /&gt;
Nancy</description>
      <pubDate>Wed, 02 Jun 2010 13:46:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Can-someone-tell-me-what-this-all-means/m-p/29944#M7060</guid>
      <dc:creator>SASHunter</dc:creator>
      <dc:date>2010-06-02T13:46:37Z</dc:date>
    </item>
  </channel>
</rss>

