<?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: error - pls help resolve in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42911#M8776</link>
    <description>the variable 'dates' is not defined. SAS will looking for the value of the macro variable,  'dates' , from local and global tables. let me guess, it will search local table for the macro itselt, the local table for the macro I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\SASCodeIncludes\lib077.mac, and the global table. That why there are three error messages - there is an Error message posted after failed to search each of the three tables.</description>
    <pubDate>Wed, 20 Jan 2010 18:20:17 GMT</pubDate>
    <dc:creator>SUN59338</dc:creator>
    <dc:date>2010-01-20T18:20:17Z</dc:date>
    <item>
      <title>error - pls help resolve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42909#M8774</link>
      <description>code:&lt;BR /&gt;
%macro vmfsumm(qtrloc);&lt;BR /&gt;
&lt;BR /&gt;
%let yymm = %sysfunc(intnx(month,%sysfunc(today()),-1),yymmd7.) ; &lt;BR /&gt;
&lt;BR /&gt;
%if qtrloc = SysProd %then %let qtr  = &amp;amp;yymm.Prod;&lt;BR /&gt;
  %else %if qtrloc = SysDev %then %let qtr  = &amp;amp;yymm.Rgrs;&lt;BR /&gt;
  %else %let qtr  = &amp;amp;yymm.TestNS;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
%let qtrdata  = &amp;amp;yymm.Prod;&lt;BR /&gt;
%let prqdate= %sysfunc(intnx(month,%sysfunc(today()),-3,E),date9.);&lt;BR /&gt;
%let valdate= %sysfunc(intnx(month,%sysfunc(today()),-1,E),date9.);&lt;BR /&gt;
*%let crntdate= %sysfunc(intnx(month,%sysfunc(today()),-1,E),worddate17.);&lt;BR /&gt;
%let dpryrend= %sysfunc(intnx(month,%sysfunc(today()),-9,E),date9.);&lt;BR /&gt;
%let valm = %sysfunc(intnx(month,%sysfunc(today()),-1),month2.);&lt;BR /&gt;
%let crntyear = %sysfunc(intnx(month,%sysfunc(today()),-1),year2.);&lt;BR /&gt;
&lt;BR /&gt;
%let rawdata = jap&amp;amp;valm.&amp;amp;crntyear..dat;&lt;BR /&gt;
&lt;BR /&gt;
%put &amp;amp;qtrloc &amp;amp;yymm &amp;amp;qtr &amp;amp;prqdate &amp;amp;valdate &amp;amp;crntdate &amp;amp;dpryrend &amp;amp;valm &amp;amp;crntyear &amp;amp;rawdata; &lt;BR /&gt;
&lt;BR /&gt;
%include "I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\SASCodeIncludes\lib077.mac";&lt;BR /&gt;
%include &amp;amp;dates; &lt;BR /&gt;
%dates(datejap); &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
filename lfcmextr "I:\SysProd\LifeMaster\2009-12Prod\RawData\jap1209.dat";&lt;BR /&gt;
&lt;BR /&gt;
proc printto   log = "I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\Japan\VMFsumm.log" new&lt;BR /&gt;
             print = "I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\Japan\VMFsumm.lst" new;&lt;BR /&gt;
&lt;BR /&gt;
footnote  "Program: I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\Japan\VMFsumm.sas";&lt;BR /&gt;
footnote2 "Output:  I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\Japan\VMFsumm.lst";&lt;BR /&gt;
&lt;BR /&gt;
%mend vmfsumm;&lt;BR /&gt;
&lt;BR /&gt;
%vmfsumm(SysTest);&lt;BR /&gt;
log:&lt;BR /&gt;
SYMBOLGEN:  Macro variable YYMM resolves to 2009-12&lt;BR /&gt;
SYMBOLGEN:  Macro variable YYMM resolves to 2009-12&lt;BR /&gt;
SYMBOLGEN:  Macro variable VALM resolves to 12&lt;BR /&gt;
SYMBOLGEN:  Macro variable CRNTYEAR resolves to 09&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTRLOC resolves to SysTest&lt;BR /&gt;
SYMBOLGEN:  Macro variable YYMM resolves to 2009-12&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTR resolves to 2009-12TestNS&lt;BR /&gt;
SYMBOLGEN:  Macro variable PRQDATE resolves to 31OCT2009&lt;BR /&gt;
SYMBOLGEN:  Macro variable VALDATE resolves to 31DEC2009&lt;BR /&gt;
SYMBOLGEN:  Macro variable CRNTDATE resolves to Dec 31, 2009&lt;BR /&gt;
SYMBOLGEN:  Macro variable DPRYREND resolves to 30APR2009&lt;BR /&gt;
SYMBOLGEN:  Macro variable VALM resolves to 12&lt;BR /&gt;
SYMBOLGEN:  Macro variable CRNTYEAR resolves to 09&lt;BR /&gt;
SYMBOLGEN:  Macro variable RAWDATA resolves to jap1209.dat&lt;BR /&gt;
SysTest 2009-12 2009-12TestNS 31OCT2009 31DEC2009 Dec 31, 2009 30APR2009 12 09 jap1209.dat&lt;BR /&gt;
WARNING: Apparent symbolic reference DATES not resolved.&lt;BR /&gt;
ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;BR /&gt;
ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;BR /&gt;
ERROR: Incorrect %INCLUDE statement will not be executed. There is a syntax error.&lt;BR /&gt;
NOTE: Line generated by the invoked macro "VMFSUMM".&lt;BR /&gt;
572           %include "I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\SASCodeIncludes\lib077.mac"; %include &amp;amp;dates;&lt;BR /&gt;
572      ! %dates(datejap);    filename lfcmextr "I:\SysProd\LifeMaster\2009-12Prod\RawData\jap1209.dat";  proc printto   log =&lt;BR /&gt;
           _&lt;BR /&gt;
           _&lt;BR /&gt;
           _&lt;BR /&gt;
           180&lt;BR /&gt;
           180&lt;BR /&gt;
           180&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
&lt;BR /&gt;
WARNING: Apparent invocation of macro DATES not resolved.&lt;BR /&gt;
WARNING: The Base Product product with which PRINTTO is associated will expire within 30 days. Please contact your SAS &lt;BR /&gt;
         installation representative to have it renewed.&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTRLOC resolves to SysTest&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTR resolves to 2009-12TestNS&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTRLOC resolves to SysTest&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTR resolves to 2009-12TestNS&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTRLOC resolves to SysTest&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTR resolves to 2009-12TestNS&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTRLOC resolves to SysTest&lt;BR /&gt;
SYMBOLGEN:  Macro variable QTR resolves to 2009-12TestNS</description>
      <pubDate>Tue, 19 Jan 2010 18:57:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42909#M8774</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2010-01-19T18:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: error - pls help resolve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42910#M8775</link>
      <description>Well first off &amp;amp;dates is not assigned so that code is not included.  There is no code shown to define the file referenced by &amp;amp;dates so we cannot know what happened there.</description>
      <pubDate>Tue, 19 Jan 2010 19:02:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42910#M8775</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2010-01-19T19:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: error - pls help resolve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42911#M8776</link>
      <description>the variable 'dates' is not defined. SAS will looking for the value of the macro variable,  'dates' , from local and global tables. let me guess, it will search local table for the macro itselt, the local table for the macro I:\&amp;amp;qtrloc\LifeMaster\&amp;amp;qtr\Programs\Standard\SASCodeIncludes\lib077.mac, and the global table. That why there are three error messages - there is an Error message posted after failed to search each of the three tables.</description>
      <pubDate>Wed, 20 Jan 2010 18:20:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42911#M8776</guid>
      <dc:creator>SUN59338</dc:creator>
      <dc:date>2010-01-20T18:20:17Z</dc:date>
    </item>
    <item>
      <title>Re: error - pls help resolve</title>
      <link>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42912#M8777</link>
      <description>Can we see what's in your lib077.mac file?  Then I'll bet we can figure this one out.</description>
      <pubDate>Wed, 20 Jan 2010 18:27:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/error-pls-help-resolve/m-p/42912#M8777</guid>
      <dc:creator>PatrickG</dc:creator>
      <dc:date>2010-01-20T18:27:05Z</dc:date>
    </item>
  </channel>
</rss>

