<?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: PROC printto - not generating log or output in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253303#M48180</link>
    <description>&lt;P&gt;First - remove the proc printto and run the code. Does it execute properly? What does the log say?&lt;/P&gt;
&lt;P&gt;Then re-add and see what happens.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code above, I see the macro definition, but it's never called, that you've shown.&lt;/P&gt;</description>
    <pubDate>Mon, 29 Feb 2016 21:35:30 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-02-29T21:35:30Z</dc:date>
    <item>
      <title>PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253290#M48171</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to use proc printo in a macro. I have given proc printto in the beginning with 'filename &amp;amp;' &amp;nbsp;at the end - &amp;nbsp;just a proc printto.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;my log and lst fiels have 0 bytes.&lt;/P&gt;
&lt;P&gt;%Macro abc(filename=);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; proc printto file="&amp;amp;filename..lst"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; log="&amp;amp;filename..log" new;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.....PROC Means; PROC COMPARE; etc...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc printto;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;%MEND abc;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please advise as to why my log and output files are 0 bytes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Archana&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253290#M48171</guid>
      <dc:creator>ArchanaSudhir</dc:creator>
      <dc:date>2016-02-29T21:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253303#M48180</link>
      <description>&lt;P&gt;First - remove the proc printto and run the code. Does it execute properly? What does the log say?&lt;/P&gt;
&lt;P&gt;Then re-add and see what happens.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your code above, I see the macro definition, but it's never called, that you've shown.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:35:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253303#M48180</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-29T21:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253304#M48181</link>
      <description>&lt;P&gt;Also note, PROC PRINTTO does not have an option called FILE=.&amp;nbsp; It uses PRINT= to designate the destination for the .lst file.&amp;nbsp; By any chance, were you ignoring error messages?&amp;nbsp; Or could you not see the log to be able to observe the error messages?&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:49:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253304#M48181</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-02-29T21:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253308#M48182</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/4954"&gt;@Astounding﻿&lt;/a&gt;: I would have agreed with your statement about FILE= vs. PRINT= and was surprised to see that FILE= is working. As it turned out, FILE= and NAME= are aliases to the PRINT= option (according to &lt;A href="http://support.sas.com/documentation/cdl/en/proc/68954/HTML/default/viewer.htm#p1hwvc03z4tqlkn1owzhzo8e7ulu.htm" target="_blank"&gt;SAS 9.4 documentation&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 22:05:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253308#M48182</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-29T22:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253309#M48183</link>
      <description>&lt;P&gt;Not only are you right about that, but that behavior even goes back to SAS 9.2.&amp;nbsp; My only excuse:&amp;nbsp; I did check the documentation but didn't read far enough to see the Aliases.&amp;nbsp; That section is actually a little bit later.&amp;nbsp; My fault!&lt;/P&gt;</description>
      <pubDate>Mon, 29 Feb 2016 22:12:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253309#M48183</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-02-29T22:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253376#M48206</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Out of interest, what is the goal of putting a printto within a macro statement? &amp;nbsp;Generally speaking to be an effective log it needs both the call of the macro, and the preceding steps, to make sense of the call - as noted by one of the responders here asking for the call of the macro. &amp;nbsp;To my mind, writing out lots of separate logs will just mak elife more complicated. &amp;nbsp;Keep it simple.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2016 10:27:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/253376#M48206</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-03-01T10:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/254280#M48469</link>
      <description>&lt;P&gt;Thanks. once i made sure log was getting&amp;nbsp; generated, it worked fine.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 18:32:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/254280#M48469</guid>
      <dc:creator>ArchanaSudhir</dc:creator>
      <dc:date>2016-03-03T18:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC printto - not generating log or output</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/254281#M48470</link>
      <description>&lt;P&gt;HI RW9,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have to run 30 similar programs with slight variations. So I am using a macro with&amp;nbsp;proc printto to generate different lst and outpuit so that I dont have to manually save.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2016 18:34:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-printto-not-generating-log-or-output/m-p/254281#M48470</guid>
      <dc:creator>ArchanaSudhir</dc:creator>
      <dc:date>2016-03-03T18:34:22Z</dc:date>
    </item>
  </channel>
</rss>

