<?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: Getting error in log in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210761#M52102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the code in your first program wrapped in a macro? If so, the enddt macro will be local unless you expressly declare it as global.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Jul 2015 22:09:49 GMT</pubDate>
    <dc:creator>Fugue</dc:creator>
    <dc:date>2015-07-24T22:09:49Z</dc:date>
    <item>
      <title>Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210756#M52097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Within my sas program I call another program where one of the datasets contains the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let enddt=%sysfunc(inputn(&amp;amp;exposurecutoff,yymmdd8.)); /* converting to sas date */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (year(start) ge &amp;amp;exposureyearstart) and (year(end) le year(&amp;amp;enddt));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works perfectly when I run the first program and open the second program manually and running it (rather than calling it using %include). When I run the first program which calls the second one using %include I get the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1008 +if (year(start) ge &amp;amp;exposureyearstart) and (year(end) le&lt;/P&gt;&lt;P&gt;1008!+year(&amp;amp;enddt));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 22&lt;/P&gt;&lt;P&gt;WARNING: Apparent symbolic reference ENDDT not resolved.&lt;/P&gt;&lt;P&gt;ERROR 22-322: Syntax error, expecting one of the following: a name,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a quoted string, a numeric constant,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; a datetime constant, a missing value, ), INPUT, PUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has to be due to the fact that I'm calling it the program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:31:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210756#M52097</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-07-24T15:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210757#M52098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the length of the line in the program, if it's over 256 characters it causes issues. Use LRECL to set the length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include 'program1.sas' /lrecl=300;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:39:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210757#M52098</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-24T15:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210758#M52099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the length of the line is &lt;EM&gt;if (year(start) ge &amp;amp;exposureyearstart) and (year(end) le year(&amp;amp;enddt));&lt;/EM&gt; which is less than 256 characters &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 15:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210758#M52099</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-07-24T15:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210759#M52100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is line 1008 in the same macro as the %LET for enddt?&amp;nbsp; If not, you may need to define it as a global.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 16:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210759#M52100</guid>
      <dc:creator>Doc_Duke</dc:creator>
      <dc:date>2015-07-24T16:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210760#M52101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;add the following information notes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put info &amp;amp;=exposurecutoff;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let enddt=%sysfunc(inputn(&amp;amp;exposurecutoff,yymmdd8.)); /* converting to sas date */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put info &amp;amp;=exposureyearstart &amp;amp;=enddt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if (year(start) ge &amp;amp;exposureyearstart) and (year(end) le year(&amp;amp;enddt));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 21:26:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210760#M52101</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2015-07-24T21:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210761#M52102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the code in your first program wrapped in a macro? If so, the enddt macro will be local unless you expressly declare it as global.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2015 22:09:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210761#M52102</guid>
      <dc:creator>Fugue</dc:creator>
      <dc:date>2015-07-24T22:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210762#M52103</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Truncation could still be your problem. The actual line that is truncated could be anywhere before line 1008 and have the effect of not running the step that creates the macro variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Jul 2015 01:23:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/210762#M52103</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2015-07-25T01:23:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error in log</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/231610#M54588</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I found a&amp;nbsp;pretty cool add-in to Base SAS on &lt;A href="http://www.tatesoft.com" target="_blank"&gt;www.tatesoft.com&lt;/A&gt; that may be very usefull to you. The tool called Log Analyser is integrated into Base SAS and can produce Log summary report in a second. You may also analyse log in details if you wish. Really great tool!&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:21:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Getting-error-in-log/m-p/231610#M54588</guid>
      <dc:creator>kaji</dc:creator>
      <dc:date>2015-10-26T12:21:45Z</dc:date>
    </item>
  </channel>
</rss>

