<?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: What this macro does in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-this-macro-does/m-p/802490#M315926</link>
    <description>thank you</description>
    <pubDate>Wed, 16 Mar 2022 13:26:38 GMT</pubDate>
    <dc:creator>Toni2</dc:creator>
    <dc:date>2022-03-16T13:26:38Z</dc:date>
    <item>
      <title>What this macro does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-this-macro-does/m-p/802482#M315924</link>
      <description>&lt;P&gt;hi, the below macro is a part from a complex huge macro code. I have copied only the first part of the macro. (it is not complete)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What i don't understand is if the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;&amp;amp;prefix._continuous_bands_count_&amp;amp;i._&amp;amp;j.&amp;nbsp; &lt;/STRONG&gt;&lt;/EM&gt;dataset needs to pre-exist before i run the macro below or it is created by the macro?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i tried to run it i received an error that the dataset does not exist but i am not very sure if the macro creates empty dataset to be used later&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%macro continuous_psi(prefix=,vars=,output=);
                                                                                                                  
	%let num_vars = %sysfunc(countw(%superq(vars)));

	%do i = 1 %to &amp;amp;num_vars.;

		%let var&amp;amp;i. = %qscan(%superq(vars), &amp;amp;i., %str( ));
		%put var&amp;amp;i. = &amp;amp;&amp;amp;var&amp;amp;i..;

		&lt;EM&gt;&lt;STRONG&gt;data &amp;amp;prefix._continuous_bands_count_&amp;amp;i.;
			&lt;FONT face="arial black,avant garde" color="#000000"&gt;set&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;                              &lt;STRONG&gt; %do j = 1 %to 6;
					&amp;amp;prefix._continuous_bands_count_&amp;amp;i._&amp;amp;j. (in = a&amp;amp;j.)
				%end;
				;&lt;/STRONG&gt;&lt;/EM&gt;

			%do j = 1 %to 6;
				if a&amp;amp;j. = 1 then band = &amp;amp;j.;
			%end;

			volume = max(0, volume);

		run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Mar 2022 13:10:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-this-macro-does/m-p/802482#M315924</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-03-16T13:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: What this macro does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-this-macro-does/m-p/802485#M315925</link>
      <description>&lt;P&gt;These datasets&lt;/P&gt;
&lt;PRE&gt;&amp;amp;prefix._continuous_bands_count_&amp;amp;i._&amp;amp;j.&lt;/PRE&gt;
&lt;P&gt;are used in the SET statement and need to exist before the macro is called.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Mar 2022 13:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-this-macro-does/m-p/802485#M315925</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-03-16T13:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: What this macro does</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-this-macro-does/m-p/802490#M315926</link>
      <description>thank you</description>
      <pubDate>Wed, 16 Mar 2022 13:26:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-this-macro-does/m-p/802490#M315926</guid>
      <dc:creator>Toni2</dc:creator>
      <dc:date>2022-03-16T13:26:38Z</dc:date>
    </item>
  </channel>
</rss>

