<?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: Creating Separate log files for each iteration in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528231#M144132</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Apologies, Posted the code with typo error. In Program I have used proper quotes.&lt;BR /&gt;</description>
    <pubDate>Fri, 18 Jan 2019 03:55:29 GMT</pubDate>
    <dc:creator>Ramya2</dc:creator>
    <dc:date>2019-01-18T03:55:29Z</dc:date>
    <item>
      <title>Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528092#M144081</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a below piece of code, where it creates a 3 output per iteration and between the iteration 1 minutes sleep. But now I want For each iteration separate log needs to be created in some location. I tried doing that. But for 1st iteration from 1 to 3 log is not creating.&amp;nbsp; from 4 to 10 is creating.&amp;nbsp; Please help me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro caller();&lt;/P&gt;&lt;P&gt;%do j=1 %to &amp;amp;npts;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%looper(subject=&amp;amp;&amp;amp;pt&amp;amp;j.);&lt;/P&gt;&lt;P&gt;%if&amp;nbsp; %sysfunc(mod(&amp;amp;j,3))=0 %then&lt;/P&gt;&lt;P&gt;%do;&lt;/P&gt;&lt;P&gt;proc printto new log ='"/ctshared/cdr/dev/RAMYA/archive/logfile_&amp;amp;j..log";&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;%let rc=%sysfunc(sleep(60,1));&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend caller();&lt;/P&gt;&lt;P&gt;%caller();&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528092#M144081</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-17T17:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528096#M144083</link>
      <description>&lt;P&gt;Please run this program again, with the following line as the first line of code to execute&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint mlogic symbolgen;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are there errors in the SAS log file?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please click on the {i} icon and paste the Log into the window that opens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To tell you the truth, I would be surprised you get any logs at all because you have an error in this statement:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc printto new log ='"/ctshared/cdr/dev/RAMYA/archive/logfile_&amp;amp;j..log";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You have a single quote followed by a double quote, the&amp;nbsp;single quote doesn't belong there.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528096#M144083</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-17T17:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528098#M144085</link>
      <description>&lt;P&gt;Also, wouldn't you want the corrected PROC PRINTTO higher in the code instead of where it is, such as:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%macro caller();
%do j=1 %to &amp;amp;npts;
proc printto new log ="/ctshared/cdr/dev/RAMYA/archive/logfile_&amp;amp;j..log";
run;
%looper(subject=&amp;amp;&amp;amp;pt&amp;amp;j.);
proc printto;
run;
%let rc=%sysfunc(sleep(60,1));
%end;
%mend caller();

%caller();&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And lastly, why do you need to test if MOD(3,&amp;amp;j)=0? That doesn't seem to be doing anything useful to me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:50:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528098#M144085</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-17T17:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528099#M144086</link>
      <description>&lt;P&gt;I think that you may want&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;%if  %sysfunc(mod(&amp;amp;j,3))=0 or &amp;amp;j=1 %then&lt;/PRE&gt;
&lt;P&gt;mod (1,3) = 1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mod (2,3) = 2&lt;/P&gt;
&lt;P&gt;so the mod function would prevent the printto code from running.&lt;/P&gt;
&lt;P&gt;I don't know what your "looper" macro does but perhaps you want it run AFTER the proc printo if you want log results from looper to go to the printto file.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Jan 2019 17:50:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528099#M144086</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-17T17:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528231#M144132</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Apologies, Posted the code with typo error. In Program I have used proper quotes.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2019 03:55:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528231#M144132</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-18T03:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528235#M144135</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;BR /&gt;I need to use MOD(3,&amp;amp;j)=0 because, I need to execute 3 outputs at a time. the above will create 1 output each with a execution break of 1 minutes. But need 3 outputs together needs to be creted with the execution break of 1 minutes. Suppose if I have 10 subjects. 3 should execute and sleep for 1 minutes. Next 4 to 6 should execute and sleep for 1 minutes. And so on.</description>
      <pubDate>Fri, 18 Jan 2019 04:15:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528235#M144135</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-18T04:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528236#M144136</link>
      <description>@ballordw,&lt;BR /&gt;&lt;BR /&gt;Here is my Looper macro, just before caller..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;***checking whether any new entry for the onsetdt rslt endptid****;&lt;BR /&gt;&lt;BR /&gt;/*data final_1;&lt;BR /&gt;merge final (in=a) test.History (in=b);&lt;BR /&gt;by _all_;&lt;BR /&gt;if a and not b;&lt;BR /&gt;run;*/&lt;BR /&gt;&lt;BR /&gt;******relpacing the history file with current one****;&lt;BR /&gt;&lt;BR /&gt;data test.history;&lt;BR /&gt;set final;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;******creating macro variable for site and subject to creat the output for each subject;&lt;BR /&gt;&lt;BR /&gt;data _NULL_;&lt;BR /&gt;set final_1 end=eof;&lt;BR /&gt;call symput('pt'||compress(put(_n_,best.)),trim(left(upcase(subject))));&lt;BR /&gt;&lt;BR /&gt;if eof then call symput('npts',compress(put(_n_,best.)));&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;****creating macro variable to create or run the report conditionally******;&lt;BR /&gt;&lt;BR /&gt;%let count=0;&lt;BR /&gt;&lt;BR /&gt;data _null_ ;&lt;BR /&gt;set final_1 end=eof NOBS=COUNT;;&lt;BR /&gt;countc = put(count,best.);&lt;BR /&gt;if _n_ = 1 then call symput('count',countc);&lt;BR /&gt;run;&lt;BR /&gt;%put &amp;amp;count;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;%macro new_entry;&lt;BR /&gt;&lt;BR /&gt;%if &amp;amp;count ne 0 %then %do;&lt;BR /&gt;&lt;BR /&gt;*****genrating the report and sent patient profile in attached the mail if new entry****;&lt;BR /&gt;*****selecting the subject only who have value for the endptid,event and onsetdt*****;&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;create table demo as&lt;BR /&gt;select *&lt;BR /&gt;from demog_1_&lt;BR /&gt;where subject in (select subject from final_1)&lt;BR /&gt;order by subject,site;&lt;BR /&gt;quit;&lt;BR /&gt;&lt;BR /&gt;********************** Create profile for each patient*******************;&lt;BR /&gt;&lt;BR /&gt;%macro looper(subject=,);&lt;BR /&gt;&lt;BR /&gt;options papersize = A4 orientation = landscape nodate center nonumber bottommargin = 0.25in&lt;BR /&gt;topmargin = 0.25in leftmargin = 0.25in rightmargin = 0.25in ;&lt;BR /&gt;ods listing close;&lt;BR /&gt;/*ods pdf body = "/ctshared/cdr/prod/a423_20110203/AMG423_20110203_Patient_Profile/rms32763/AMG423_20110203_&amp;amp;subject._Patient Profile.pdf";*/&lt;BR /&gt;ods pdf body = "/ctshared/cdr/dev/RAMYA/AMG423_20110203_&amp;amp;subject._Patient Profile.pdf";&lt;BR /&gt;ods noresults;&lt;BR /&gt;&lt;BR /&gt;footnote2 justify=left height=0.5 "Report Creation Date/Time: &amp;amp;sysdate. &amp;amp;systime. AM PDT" ;&lt;BR /&gt;footnote3 justify=left height=0.5 "For Internal Use Only. Amgen Confidential.";&lt;BR /&gt;&lt;BR /&gt;Title1 Bold "AMG423_20110203_&amp;amp;subject._Patient Profile";&lt;BR /&gt;Title4 italic justify=left "Demographics";&lt;BR /&gt;&lt;BR /&gt;PROC REPORT DATA=demo NOWD split='*' ;&lt;BR /&gt;where subject in ("&amp;amp;subject" "Subject");&lt;BR /&gt;column ("Demographics" site subject age_y_c sex svstdt_raw);&lt;BR /&gt;&lt;BR /&gt;define site / Center Display "Site" style=[cellwidth=15mm];&lt;BR /&gt;define subject / Center Display "Subject" style=[cellwidth=22mm];&lt;BR /&gt;define age_y_c / Center Display "Age" style=[cellwidth=20mm];&lt;BR /&gt;define sex / Center Display "Sex" style=[cellwidth=20mm];&lt;BR /&gt;define svstdt_raw / Center Display "Screening Date" style=[cellwidth=20mm];&lt;BR /&gt;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;ods PDF close; /* must close tagsets.ExcelXP here*/&lt;BR /&gt;ods listing;&lt;BR /&gt;ods results;&lt;BR /&gt;&lt;BR /&gt;ods listing;&lt;BR /&gt;&lt;BR /&gt;%mend looper ;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Jan 2019 04:20:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528236#M144136</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-18T04:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528280#M144166</link>
      <description>&lt;P&gt;I still need to see the SAS log, with the command &lt;FONT face="courier new,courier"&gt;options mprint mlogic symbolgen;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;executed at the start of the program, and pasted into the {i} window (DO NOT SKIP THIS STEP)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/254855"&gt;@Ramya2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&lt;BR /&gt;I need to use MOD(3,&amp;amp;j)=0 because, I need to execute 3 outputs at a time. the above will create 1 output each with a execution break of 1 minutes. But need 3 outputs together needs to be creted with the execution break of 1 minutes. Suppose if I have 10 subjects. 3 should execute and sleep for 1 minutes. Next 4 to 6 should execute and sleep for 1 minutes. And so on.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This was not explained previously. Now your MOD(3,&amp;amp;j) makes sense.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 11:50:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528280#M144166</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-18T11:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528286#M144167</link>
      <description>what is this i window?</description>
      <pubDate>Fri, 18 Jan 2019 12:16:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528286#M144167</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-18T12:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528292#M144169</link>
      <description>&lt;P&gt;click on the {i} icon&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 12:55:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528292#M144169</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-18T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528293#M144170</link>
      <description>Sorry, I am unable to find that icon.</description>
      <pubDate>Fri, 18 Jan 2019 13:22:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528293#M144170</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-18T13:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528305#M144172</link>
      <description>You are looking for mod(&amp;amp;j,3)=0  but that is the wrong logic.  It means there are no proc printtos until &amp;amp;j=3.  Try switching to mod(&amp;amp;j,3)=1 instead.</description>
      <pubDate>Fri, 18 Jan 2019 14:22:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528305#M144172</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-18T14:22:01Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528316#M144178</link>
      <description>&lt;P&gt;I think&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;&amp;nbsp;has solved the problem, provided the code involving mod(&amp;amp;j,3)=1 is moved to above the %looper macro call.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 14:41:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528316#M144178</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-18T14:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528340#M144186</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I have tried giving mod(&amp;amp;j,3)=1, But it is not coming as expected. Kindly find the details below.&lt;BR /&gt;&lt;BR /&gt;My total number of subjects:10&lt;BR /&gt;20314001003&lt;BR /&gt;20314001004&lt;BR /&gt;20314001005&lt;BR /&gt;20314001006&lt;BR /&gt;20314001007&lt;BR /&gt;20314001008&lt;BR /&gt;20314001011&lt;BR /&gt;20314001013&lt;BR /&gt;20314001014&lt;BR /&gt;20314001015&lt;BR /&gt;&lt;BR /&gt;My caller macro;&lt;BR /&gt;%macro caller();&lt;BR /&gt;%do j=1 %to &amp;amp;npts;&lt;BR /&gt;&lt;BR /&gt;%looper(subject=&amp;amp;&amp;amp;pt&amp;amp;j.);&lt;BR /&gt;%if %sysfunc(mod(&amp;amp;j,3))=1 %then&lt;BR /&gt;%do;&lt;BR /&gt;proc printto new log ="/ctshared/cdr/dev/RAMYA/archive/logfile_&amp;amp;j..log";&lt;BR /&gt;run;&lt;BR /&gt;%let rc=%sysfunc(sleep(60,1));&lt;BR /&gt;%end;&lt;BR /&gt;%end;&lt;BR /&gt;%mend caller();&lt;BR /&gt;&lt;BR /&gt;%caller();&lt;BR /&gt;&lt;BR /&gt;Log file details.&lt;BR /&gt;Logfile_1.log - 2nd subject to 4th subject&lt;BR /&gt;Logfile_4.log - 5th subject to 8th subject&lt;BR /&gt;Logfile_7.log - 9th subject to 10th subject&lt;BR /&gt;Logfile_10.log - no entry&lt;BR /&gt;&lt;BR /&gt;But, I want 1st to 3rd , 4th to 6th ,7th to 9th and 10th</description>
      <pubDate>Fri, 18 Jan 2019 15:31:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528340#M144186</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-18T15:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528343#M144187</link>
      <description>&lt;P&gt;Your PROC PRINTTO needs to be before %looper, not after.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 15:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528343#M144187</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-18T15:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528346#M144190</link>
      <description>&lt;P&gt;So that's closer.&amp;nbsp; Now move the %LOOPER macro as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;suggested.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 15:35:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528346#M144190</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-18T15:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528349#M144192</link>
      <description>If it is before looper, it will create log for each subject. I dont want the log to be created for each subject.</description>
      <pubDate>Fri, 18 Jan 2019 15:57:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528349#M144192</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-18T15:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528351#M144193</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/254855"&gt;@Ramya2&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;If it is before looper, it will create log for each subject. I dont want the log to be created for each subject.&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think this is incorrect. There is nothing in the code that will cause a log for each subject to be generated.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 16:02:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528351#M144193</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-01-18T16:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528354#M144194</link>
      <description>&lt;P&gt;With all suggested changes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro caller();&lt;/P&gt;
&lt;P&gt;%do j=1 %to &amp;amp;npts;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%if&amp;nbsp; %sysfunc(mod(&amp;amp;j,3))=1 %then&lt;/P&gt;
&lt;P&gt;%do;&lt;/P&gt;
&lt;P&gt;proc printto new log ='"/ctshared/cdr/dev/RAMYA/archive/logfile_&amp;amp;j..log";&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;%let rc=%sysfunc(sleep(60,1));&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;%looper(subject=&amp;amp;&amp;amp;pt&amp;amp;j.);&lt;/P&gt;
&lt;P&gt;%end;&lt;/P&gt;
&lt;P&gt;%mend caller();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should be OK.&amp;nbsp; Try it and see.&amp;nbsp; Careful programming might eliminate an unnecessary SLEEP.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jan 2019 16:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528354#M144194</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-01-18T16:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Separate log files for each iteration</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528680#M144328</link>
      <description>Wow. It is working fine. Thanks a lot for your suggestion.</description>
      <pubDate>Mon, 21 Jan 2019 05:05:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Separate-log-files-for-each-iteration/m-p/528680#M144328</guid>
      <dc:creator>Ramya2</dc:creator>
      <dc:date>2019-01-21T05:05:08Z</dc:date>
    </item>
  </channel>
</rss>

