<?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: MACRO Explanation in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23281#M5132</link>
    <description>The error: ERROR: You cannot open WORK.ITEMBYTHRESH.DATA for output access with member-level control&lt;BR /&gt;
because WORK.ITEMBYTHRESH.DATA is in use by you in resource environment DMS Process.&lt;BR /&gt;
&lt;BR /&gt;
means that some other program has the output data set open and/or locked so the referenced data step can't use it. It is likely you opened the data set to see the results previously and didn't close it from the table view.</description>
    <pubDate>Mon, 07 Mar 2011 22:21:52 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2011-03-07T22:21:52Z</dc:date>
    <item>
      <title>MACRO Explanation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23276#M5127</link>
      <description>Hello Experts,&lt;BR /&gt;
&lt;BR /&gt;
I have 2 questions regarding Macro:&lt;BR /&gt;
&lt;BR /&gt;
1) when we assign replication to a set of codes, is there a common problem with these replication going threw the codes differently. Ex: I have 3 replication and the first 2 skips a step while the last one goes threw the whole thing as it supposed to.  Is there a common obvious mistake that I should look for&lt;BR /&gt;
&lt;BR /&gt;
2) when we have a macro within macro with for example 100 iteration. what happens?&lt;BR /&gt;
&lt;BR /&gt;
do SAS goes threw each macro separately or behaves like a loop, finishing the macro within before ending the macro outside&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thank you for your help&lt;BR /&gt;
R.A.G.</description>
      <pubDate>Mon, 07 Mar 2011 17:12:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23276#M5127</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-07T17:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Explanation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23277#M5128</link>
      <description>I don't understand question 1.  an example would help.&lt;BR /&gt;
&lt;BR /&gt;
For question 2, by specifying OPTIONS MACROGEN; you can see exactly the code that is generated by a macro (and by a macro within a macro).</description>
      <pubDate>Mon, 07 Mar 2011 17:33:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23277#M5128</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2011-03-07T17:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Explanation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23278#M5129</link>
      <description>Thank you Doc,&lt;BR /&gt;
&lt;BR /&gt;
Maybe this will help, I am getting these errors:&lt;BR /&gt;
&lt;BR /&gt;
first error: &lt;BR /&gt;
MPRINT(CREATEMPLUSINPUT):   * Item by threshold data for writing item-based commands;&lt;BR /&gt;
MPRINT(CREATEMPLUSINPUT):   DATA itembythresh;&lt;BR /&gt;
MPRINT(CREATEMPLUSINPUT):   SET kernel;&lt;BR /&gt;
MPRINT(CREATEMPLUSINPUT):   RUN;&lt;BR /&gt;
ERROR: You cannot open WORK.ITEMBYTHRESH.DATA for output access with member-level control&lt;BR /&gt;
because WORK.ITEMBYTHRESH.DATA is in use by you in resource environment DMS Process.&lt;BR /&gt;
NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;
&lt;BR /&gt;
2nd ERROR:&lt;BR /&gt;
SYMBOLGEN:  Macro variable COMMANDFILE resolves to CDM_1&lt;BR /&gt;
NOTE: Line generated by the invoked macro "WRITEMPLUS".&lt;BR /&gt;
3        * Name of Mplus file to be written with returns and breaks;  FILE&lt;BR /&gt;
                                                                      ----&lt;BR /&gt;
                                                                      180&lt;BR /&gt;
3   ! "c:\CDM1\&amp;amp;commandfile..inp";      * Mplus TITLE command;     PUT @1 "TITLE:  ! Section&lt;BR /&gt;
3   ! that appears in header of output file";     PUT @5&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.</description>
      <pubDate>Mon, 07 Mar 2011 17:46:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23278#M5129</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-07T17:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Explanation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23279#M5130</link>
      <description>Hi:&lt;BR /&gt;
  This looks like a small part of a bigger process. Is this issue related to any of these previous postings?&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=49931쌋" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=49931쌋&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=48701븽" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=48701븽&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=50680엸" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=50680엸&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=50685엽" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=50685엽&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 07 Mar 2011 17:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23279#M5130</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-07T17:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Explanation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23280#M5131</link>
      <description>Hi Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
It does relate to the previous issue in a way.&lt;BR /&gt;
&lt;BR /&gt;
It all comes from the same MACRO but the problems are different.&lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
      <pubDate>Mon, 07 Mar 2011 18:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23280#M5131</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-07T18:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Explanation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23281#M5132</link>
      <description>The error: ERROR: You cannot open WORK.ITEMBYTHRESH.DATA for output access with member-level control&lt;BR /&gt;
because WORK.ITEMBYTHRESH.DATA is in use by you in resource environment DMS Process.&lt;BR /&gt;
&lt;BR /&gt;
means that some other program has the output data set open and/or locked so the referenced data step can't use it. It is likely you opened the data set to see the results previously and didn't close it from the table view.</description>
      <pubDate>Mon, 07 Mar 2011 22:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23281#M5132</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2011-03-07T22:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: MACRO Explanation</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23282#M5133</link>
      <description>Thank you &lt;BR /&gt;
that make sense and I am sure you are right. B/C when I have 1 iteration it works fine the problem starts when I have more than 1 iteration which from what you've said means the first iteration opens it and does not close it. How do I close these three files. I have tried the following and still does not work:&lt;BR /&gt;
&lt;BR /&gt;
%let ITEMBYTHRESH=%sysfunc(close(&amp;amp;.ITEMBYTHRESH));&lt;BR /&gt;
I have 3 of these files with different names&lt;BR /&gt;
&lt;BR /&gt;
Thank you</description>
      <pubDate>Tue, 08 Mar 2011 16:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/MACRO-Explanation/m-p/23282#M5133</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-03-08T16:16:36Z</dc:date>
    </item>
  </channel>
</rss>

