<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/532222#M145822</link>
    <description>Yes, that was part of my problem and hopefully I will be more aware next&lt;BR /&gt;time.&lt;BR /&gt;</description>
    <pubDate>Fri, 01 Feb 2019 22:24:19 GMT</pubDate>
    <dc:creator>jacksonan123</dc:creator>
    <dc:date>2019-02-01T22:24:19Z</dc:date>
    <item>
      <title>Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531797#M145634</link>
      <description>&lt;P&gt;I have a 19 subject study with two treatments so my files are named simt&amp;amp;i._&amp;amp;j&amp;nbsp; where&lt;/P&gt;&lt;P&gt;&amp;nbsp;i = 1 %to 19;&lt;BR /&gt;&amp;nbsp; j= 1 %to 1;&lt;/P&gt;&lt;P&gt;When processing one treatment j=1.&amp;nbsp; When I use the attached code I get the following error listed below the code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/***********SET DATA SETS VIA A MACRO***************/
%macro combine;
data bigt;
  set
  %do i = 1 %to 19;
  %do j= 1 %to 1;
  simt&amp;amp;i._&amp;amp;j
      %end;
      %end;
  ;
run;
%mend;
%combine;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;:ERROR: File WORK.SIMT20_2.DATA does not exist.&lt;/P&gt;&lt;P&gt;If I&amp;nbsp;change the i to 18 &amp;nbsp;it runs fine but I only get 18 subjects.&lt;/P&gt;&lt;P&gt;Can you tell me why I get the error when I use 19?&amp;nbsp; How can I change the code to avoid this error?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:15:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531797#M145634</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-01-31T20:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531801#M145637</link>
      <description>Are you sure? It looks like that error is for N=20, not 19?&lt;BR /&gt;&lt;BR /&gt;Can you use the prefix instead?&lt;BR /&gt;&lt;BR /&gt;data bigt;&lt;BR /&gt;set simt: ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Otherwise, I think you should run it with MPRINT on and post the full log. &lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:21:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531801#M145637</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-31T20:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531805#M145638</link>
      <description>&lt;P&gt;I don't know whether there is a need for the loop &lt;STRONG&gt;%do j=1 %to 1;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Doesn't make sense&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro combine;
/*data bigt;*/
/* %put set */
  %do i = 1 %to 19;
/*  %do j= 1 %to 1;*/
  %put simt&amp;amp;i._1 ;
      %end;
/*      %end;*/
  ;
run;
%mend;
%combine;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;562 %macro combine;&lt;BR /&gt;563 /*data bigt;*/&lt;BR /&gt;564 /* %put set */&lt;BR /&gt;565 %do i = 1 %to 19;&lt;BR /&gt;566 /* %do j= 1 %to 1;*/&lt;BR /&gt;567 %put simt&amp;amp;i._1 ;&lt;BR /&gt;568 %end;&lt;BR /&gt;569 /* %end;*/&lt;BR /&gt;570 ;&lt;BR /&gt;571 run;&lt;BR /&gt;572 %mend;&lt;BR /&gt;573 %combine;&lt;BR /&gt;simt1_1&lt;BR /&gt;simt2_1&lt;BR /&gt;simt3_1&lt;BR /&gt;simt4_1&lt;BR /&gt;simt5_1&lt;BR /&gt;simt6_1&lt;BR /&gt;simt7_1&lt;BR /&gt;simt8_1&lt;BR /&gt;simt9_1&lt;BR /&gt;simt10_1&lt;BR /&gt;simt11_1&lt;BR /&gt;simt12_1&lt;BR /&gt;simt13_1&lt;BR /&gt;simt14_1&lt;BR /&gt;simt15_1&lt;BR /&gt;simt16_1&lt;BR /&gt;simt17_1&lt;BR /&gt;simt18_1&lt;BR /&gt;simt19_1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;is this what you are expecting?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:38:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531805#M145638</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-31T20:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531807#M145639</link>
      <description>&lt;P&gt;and keep the nested j indexed loop, works fine&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;574  %macro combine;
575  /*data bigt;*/
576  /* %put set */
577    %do i = 1 %to 19;
578    %do j= 1 %to 1;
579    %put simt&amp;amp;i._1 ;
580        %end;
581        %end;
582    ;
583  run;
584  %mend;
585  %combine;
simt1_1
simt2_1
simt3_1
simt4_1
simt5_1
simt6_1
simt7_1
simt8_1
simt9_1
simt10_1
simt11_1
simt12_1
simt13_1
simt14_1
simt15_1
simt16_1
simt17_1
simt18_1
simt19_1

&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531807#M145639</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2019-01-31T20:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531812#M145642</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44100"&gt;@jacksonan123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I have a 19 subject study with two treatments so my files are named simt&amp;amp;i._&amp;amp;j&amp;nbsp; where&lt;/P&gt;
&lt;P&gt;&amp;nbsp;i = 1 %to 19;&lt;BR /&gt;&amp;nbsp; j= 1 %to 1;&lt;/P&gt;
&lt;P&gt;When processing one treatment j=1.&amp;nbsp; When I use the attached code I get the following error listed below the code.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/***********SET DATA SETS VIA A MACRO***************/
%macro combine;
data bigt;
  set
  %do i = 1 %to 19;
  %do j= 1 %to 1;
  simt&amp;amp;i._&amp;amp;j
      %end;
      %end;
  ;
run;
%mend;
%combine;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;:ERROR: File WORK.SIMT20_2.DATA does not exist.&lt;/P&gt;
&lt;P&gt;If I&amp;nbsp;change the i to 18 &amp;nbsp;it runs fine but I only get 18 subjects.&lt;/P&gt;
&lt;P&gt;Can you tell me why I get the error when I use 19?&amp;nbsp; How can I change the code to avoid this error?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I suspect that you need to copy from the LOG when you ran the code the actual macro definition used along with the error message(s). Paste the into a code box opened with the {I} icon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The code you post above will not generate any entries ending in _2 or sim20. Which is why I am asking to show from log what you actually ran.&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 20:52:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531812#M145642</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-31T20:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531819#M145647</link>
      <description>The log was long so I added it as an attachment. However if it can be read&lt;BR /&gt;I will put the final lines in the E-mail. It said that the files did not&lt;BR /&gt;exist.&lt;BR /&gt;&lt;BR /&gt;MLOGIC(COMBINE): %DO loop index variable I is now 20; loop will not iterate&lt;BR /&gt;again.&lt;BR /&gt;&lt;BR /&gt;MPRINT(COMBINE): set simt1_1 simt2_1 simt3_1 simt4_1 simt5_1 simt6_1&lt;BR /&gt;simt7_1 simt8_1 simt9_1 simt10_1 simt11_1 simt12_1 simt13_1&lt;BR /&gt;&lt;BR /&gt;simt14_1 simt15_1 simt16_1 simt17_1 simt18_1 simt19_1 ;&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT2_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT3_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT4_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT5_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2019 21:46:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531819#M145647</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-01-31T21:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531830#M145653</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44100"&gt;@jacksonan123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;The log was long so I added it as an attachment. However if it can be read&lt;BR /&gt;I will put the final lines in the E-mail. It said that the files did not&lt;BR /&gt;exist.&lt;BR /&gt;&lt;BR /&gt;MLOGIC(COMBINE): %DO loop index variable I is now 20; loop will not iterate&lt;BR /&gt;again.&lt;BR /&gt;&lt;BR /&gt;MPRINT(COMBINE): set simt1_1 simt2_1 simt3_1 simt4_1 simt5_1 simt6_1&lt;BR /&gt;simt7_1 simt8_1 simt9_1 simt10_1 simt11_1 simt12_1 simt13_1&lt;BR /&gt;&lt;BR /&gt;simt14_1 simt15_1 simt16_1 simt17_1 simt18_1 simt19_1 ;&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT2_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT3_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT4_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMT5_1.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;If none of your sets are found then perhaps you placed then in a library other than work and forgot to put the libname in the SET statement code?&lt;/P&gt;
&lt;P&gt;Or haven't created the data sets yet?&lt;/P&gt;
&lt;P&gt;Or something previous has failed so that this now has errors because the step(s) that should generate the SIMT data sets did not create the datasets:?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 23:03:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531830#M145653</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-31T23:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531835#M145656</link>
      <description>When I try to export with this command:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC EXPORT DATA=simt&amp;amp;i._&amp;amp;j&lt;BR /&gt;&lt;BR /&gt;OUTFILE= "/folders/myfolders/IMLSUBGEN/allfinal.csv"&lt;BR /&gt;&lt;BR /&gt;DBMS=CSV REPLACE;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and remove the set macro I get the log below which tells me that the files&lt;BR /&gt;are being written and to my knowledge I have not knowingly placed them into&lt;BR /&gt;a library as suggested or have not been created.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yu stated that , "If none of your sets are found then perhaps you placed&lt;BR /&gt;then in a library other than work and forgot to put the libname in the SET&lt;BR /&gt;statement code?&lt;BR /&gt;&lt;BR /&gt;Or haven't created the data sets yet?" The log would say they have been&lt;BR /&gt;created unless I am mis-interpreting the output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 18 observations read from the data set WORK.SIMT19_1.&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 18 observations read from the data set WORK.SIMR19_1.&lt;BR /&gt;&lt;BR /&gt;NOTE: The data set WORK.SIMFIN19_1 has 36 observations and 18 variables.&lt;BR /&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;cpu time 0.01 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MLOGIC(BOOTR): %DO loop index variable J is now 2; loop will iterate&lt;BR /&gt;again.&lt;BR /&gt;&lt;BR /&gt;SYMBOLGEN: Macro variable I resolves to 19&lt;BR /&gt;&lt;BR /&gt;SYMBOLGEN: Macro variable J resolves to 2&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): DATA AREF19_2;&lt;BR /&gt;&lt;BR /&gt;SYMBOLGEN: Macro variable I resolves to 19&lt;BR /&gt;&lt;BR /&gt;SYMBOLGEN: Macro variable J resolves to 2&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): set ref19_2;&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): Treat='BREF';&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 31 Jan 2019 23:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531835#M145656</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-01-31T23:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531839#M145658</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/44100"&gt;@jacksonan123&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;When I try to export with this command:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC EXPORT DATA=simt&amp;amp;i._&amp;amp;j&lt;BR /&gt;&lt;BR /&gt;OUTFILE= "/folders/myfolders/IMLSUBGEN/allfinal.csv"&lt;BR /&gt;&lt;BR /&gt;DBMS=CSV REPLACE;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;and remove the set macro I get the log below which tells me that the files&lt;BR /&gt;are being written and to my knowledge I have not knowingly placed them into&lt;BR /&gt;a library as suggested or have not been created.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Yu stated that , "If none of your sets are found then perhaps you placed&lt;BR /&gt;then in a library other than work and forgot to put the libname in the SET&lt;BR /&gt;statement code?&lt;BR /&gt;&lt;BR /&gt;Or haven't created the data sets yet?" The log would say they have been&lt;BR /&gt;created unless I am mis-interpreting the output.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;And the relationship between your BOOTR macro and COMBINED? Sequence or order of code&amp;nbsp;matters. Just because something exists at one time does not mean they exist earlier or later.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;At the time you run your COMBINED macro the data sets do not exist from the error in the SET statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try turning off SYMBOLGEN and MLOGIC so that only the MPRINT shows and there is less verbiage to run through. Then it may be more obvious what is happening where those sets are referenced when they don't exist.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also if you are rerunning code something that did not exist in the first run because some code is slightly out of order might exist during a later run in the same session because the sets now exist from the previous attempt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jan 2019 23:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531839#M145658</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-31T23:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531848#M145663</link>
      <description>&lt;P&gt;Any RSUBMITS in your code anywhere? Any chance you're mixing up local and server work spaces?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And no attachments either &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 00:47:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531848#M145663</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-02-01T00:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531854#M145666</link>
      <description>I am not sure. I tried this code which set all the data files at program's&lt;BR /&gt;end.&lt;BR /&gt;&lt;BR /&gt;data simfin&amp;amp;i._&amp;amp;j;&lt;BR /&gt;&lt;BR /&gt;set simt&amp;amp;i._&amp;amp;j simr&amp;amp;i._&amp;amp;j&lt;BR /&gt;&lt;BR /&gt;%do i = 1 %to 19;&lt;BR /&gt;&lt;BR /&gt;%do j = 1 %to 2;&lt;BR /&gt;&lt;BR /&gt;;&lt;BR /&gt;&lt;BR /&gt;%end;&lt;BR /&gt;&lt;BR /&gt;%end;&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;PROC EXPORT DATA=simfin&amp;amp;i._&amp;amp;j&lt;BR /&gt;&lt;BR /&gt;OUTFILE= "/folders/myfolders/IMLSUBGEN/allfinal.csv"&lt;BR /&gt;&lt;BR /&gt;DBMS=CSV REPLACE;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%end;&lt;BR /&gt;&lt;BR /&gt;%end;&lt;BR /&gt;&lt;BR /&gt;%mend bootR;&lt;BR /&gt;&lt;BR /&gt;%bootR;&lt;BR /&gt;&lt;BR /&gt;Run;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;It ran okay with 1 error:&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 18 observations read from the data set WORK.SIMT1_1.&lt;BR /&gt;&lt;BR /&gt;NOTE: There were 18 observations read from the data set WORK.SIMR1_1.&lt;BR /&gt;&lt;BR /&gt;NOTE: The data set WORK.SIMFIN1_1 has 36 observations and 16 variables.&lt;BR /&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;cpu time 0.00 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): PROC EXPORT DATA=simfin20_3 OUTFILE=&lt;BR /&gt;"/folders/myfolders/IMLSUBGEN/allfinal.csv" DBMS=CSV REPLACE;&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): ADLM;&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): RUN;&lt;BR /&gt;&lt;BR /&gt;NOTE: Unable to open parameter catalog: SASUSER.PARMS.PARMS.SLIST in update&lt;BR /&gt;mode. Temporary parameter values will be saved to&lt;BR /&gt;&lt;BR /&gt;WORK.PARMS.PARMS.SLIST.&lt;BR /&gt;&lt;BR /&gt;ERROR: File WORK.SIMFIN20_3.DATA does not exist.&lt;BR /&gt;&lt;BR /&gt;ERROR: Export unsuccessful. See SAS Log for details.&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;BR /&gt;NOTE: PROCEDURE EXPORT used (Total process time):&lt;BR /&gt;&lt;BR /&gt;real time 0.05 seconds&lt;BR /&gt;&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;MPRINT(BOOTR): ;&lt;BR /&gt;&lt;BR /&gt;527 run;&lt;BR /&gt;&lt;BR /&gt;528&lt;BR /&gt;&lt;BR /&gt;529&lt;BR /&gt;&lt;BR /&gt;How should this error be interpreted and fixed?&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2019 01:02:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531854#M145666</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-02-01T01:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531903#M145680</link>
      <description>&lt;PRE&gt;ERROR: File WORK.SIMFIN20_3.DATA does not exist.&lt;/PRE&gt;
&lt;P&gt;Dataset WORK.SIMFIN20_3.DATA was never created.&lt;/P&gt;
&lt;P&gt;Since you still haven't shown us your whole code and/or your whole log as requested, there's not much to diagnose.&lt;/P&gt;
&lt;P&gt;Search your log for the string "WORK.SIMFIN20_3" to see where (or if) your dataset was created at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use the "little running man" for code, and {i} for logs, as the main posting window scrambles the formatting; if you feel that the log is too big for inserting in the post, attach it as a text file.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 07:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531903#M145680</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-01T07:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531908#M145683</link>
      <description>I can do that but how do I keep it connected to the current post?&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2019 08:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531908#M145683</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-02-01T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531920#M145688</link>
      <description>&lt;P&gt;Save your log to a file, rename it to a .txt extension, and attach it to a post. See the example here.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 09:32:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/531920#M145688</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-01T09:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/532181#M145799</link>
      <description>&lt;P&gt;After thoroughly studying my log (suggested by several responders) and with the N 1 to 18 working I realized that I had mistakenly assigned&amp;nbsp; subj1 as a variable in the data set which left me with N=18 instead of N=19 thus the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With that correction the code worked fine.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 20:06:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/532181#M145799</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-02-01T20:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/532204#M145810</link>
      <description>&lt;P&gt;A not uncommon problem with loop codes in macros can also be the scope of loop counter when one macro calls another.&lt;/P&gt;
&lt;P&gt;Something like this could have accidentally incremented your loop counter one too many times.&lt;/P&gt;
&lt;PRE&gt;%macro one ();
%do i= 1 %to 4;
%two
%put in macro one i is &amp;amp;i.;

%end;
%mend;
%macro two ();
%do i= 1 %to 5;
%put in macro two i is &amp;amp;i.;
%end;
%mend;
%one;
&lt;/PRE&gt;
&lt;P&gt;Note that the log shows a value of 6 for the macro variable &amp;amp;I even though neither loop explicitly uses it. So if you had an inner loop using the same range of 1 to 19 the last value could have been 20 creating the nonexistent set name.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 21:23:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/532204#M145810</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-02-01T21:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/532222#M145822</link>
      <description>Yes, that was part of my problem and hopefully I will be more aware next&lt;BR /&gt;time.&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2019 22:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro/m-p/532222#M145822</guid>
      <dc:creator>jacksonan123</dc:creator>
      <dc:date>2019-02-01T22:24:19Z</dc:date>
    </item>
  </channel>
</rss>

