<?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: unfinished Do loop in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/unfinished-Do-loop/m-p/13603#M2030</link>
    <description>Your %DO statement must have a corresponding %END - note that the %MEND statement terminates the %MACRO definition.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Sat, 19 Feb 2011 20:26:18 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2011-02-19T20:26:18Z</dc:date>
    <item>
      <title>unfinished Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/unfinished-Do-loop/m-p/13602#M2029</link>
      <description>Can some one help me figure out why I am getting this error: &lt;BR /&gt;
&lt;BR /&gt;
ERROR: There were 1 unclosed %DO statements.  The macro CREATEMPLUSINPUT will not be compiled.&lt;BR /&gt;
&lt;BR /&gt;
Thank you&lt;BR /&gt;
&lt;BR /&gt;
This is my code:&lt;BR /&gt;
&lt;BR /&gt;
%MACRO CreateMplusInput(filesave, filename, saslibname, Qname, dataname, IDname, itemstem, itemlist, numitem, ordervar, maxitemorder, attstem, attcat, numatt, &lt;BR /&gt;
numclass, structon, structorder, loosen, processors);&lt;BR /&gt;
&lt;BR /&gt;
options mprint mlogic symbolgen;&lt;BR /&gt;
%let num_reps=1;&lt;BR /&gt;
%do seed=1 %to &amp;amp;num_reps;&lt;BR /&gt;
%let num_skills=5;&lt;BR /&gt;
%let datafile=dat&amp;amp;seed.;&lt;BR /&gt;
%let numitem=%eval(2**&amp;amp;num_skills-1);&lt;BR /&gt;
%let numclass=%eval(2**&amp;amp;num_skills);&lt;BR /&gt;
%let num_students=100;&lt;BR /&gt;
%let IDname=num_student; &lt;BR /&gt;
&lt;BR /&gt;
* CHANGED Import original data into work library, save as .dat file for Mplus;&lt;BR /&gt;
&lt;BR /&gt;
data _NULL_;&lt;BR /&gt;
	set sas_cdm.student&amp;amp;seed;        &lt;BR /&gt;
	file "C:\CDM\&amp;amp;datafile..dat";&lt;BR /&gt;
	put  student_num Combinations question1-question&amp;amp;num_item ;&lt;BR /&gt;
RUN;&lt;BR /&gt;
%mend;</description>
      <pubDate>Sat, 19 Feb 2011 20:03:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/unfinished-Do-loop/m-p/13602#M2029</guid>
      <dc:creator>R_A_G_</dc:creator>
      <dc:date>2011-02-19T20:03:26Z</dc:date>
    </item>
    <item>
      <title>Re: unfinished Do loop</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/unfinished-Do-loop/m-p/13603#M2030</link>
      <description>Your %DO statement must have a corresponding %END - note that the %MEND statement terminates the %MACRO definition.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Sat, 19 Feb 2011 20:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/unfinished-Do-loop/m-p/13603#M2030</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-02-19T20:26:18Z</dc:date>
    </item>
  </channel>
</rss>

