<?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 Messages in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255240#M6945</link>
    <description>&lt;P&gt;&lt;BR /&gt;10745&lt;BR /&gt;10746 %macro easy3;&lt;BR /&gt;10747 data &amp;amp;NAME (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup1_Fac_pat_demo2;&lt;BR /&gt;10748 status="VS at &amp;amp;Facility_X"; run;*/Bright:641;&lt;BR /&gt;10749 %mend;&lt;BR /&gt;10750&lt;BR /&gt;10751 %macro easy4;&lt;BR /&gt;10752 data &amp;amp;NAMES (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup0_Fac_pat_demo2;&lt;BR /&gt;10753 status="not VS at &amp;amp;Facility_X"; run;*/Bright:248;&lt;BR /&gt;10754 %mend;&lt;BR /&gt;10755&lt;BR /&gt;10756 %LET NAME= sup1_Fac_pat_demo_chisq;&lt;BR /&gt;10757 %LET NAMES= sup0_Fac_pat_demo_chisq;&lt;BR /&gt;10758 data compare_vs_nvs;&lt;BR /&gt;10759 set %easy3 %easy4;&lt;BR /&gt;MPRINT(EASY3): data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;BR /&gt;&lt;STRONG&gt;ERROR: File WORK.DATA.DATA does not exist.&lt;/STRONG&gt;&lt;BR /&gt;MPRINT(EASY3): set sup1_Fac_pat_demo2;&lt;BR /&gt;MPRINT(EASY3): status="VS at Elmhurst Hospital Center";&lt;BR /&gt;MPRINT(EASY3): run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;STRONG&gt;WARNING: The data set WORK.COMPARE_VS_NVS may be incomplete. When this step was stopped there were&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0 observations and 24 variables.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: Data set WORK.COMPARE_VS_NVS was not replaced because this step was stopped.&lt;/STRONG&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(EASY3): */Bright:641;&lt;BR /&gt;MPRINT(EASY4): data sup0_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;BR /&gt;MPRINT(EASY4): set sup0_Fac_pat_demo2;&lt;BR /&gt;MPRINT(EASY4): status="not VS at Elmhurst Hospital Center";&lt;BR /&gt;MPRINT(EASY4): run;&lt;/P&gt;&lt;P&gt;NOTE: There were 84 observations read from the data set WORK.SUP0_FAC_PAT_DEMO2.&lt;BR /&gt;NOTE: The data set WORK.SUP0_FAC_PAT_DEMO_CHISQ has 84 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
    <pubDate>Tue, 08 Mar 2016 14:13:00 GMT</pubDate>
    <dc:creator>beverlyobeng</dc:creator>
    <dc:date>2016-03-08T14:13:00Z</dc:date>
    <item>
      <title>WARNING Extraneous text on %MEND statement ignored</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255102#M6925</link>
      <description>&lt;P&gt;I keep getting this error message with the code detailed below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%LET NAME= sup1_Fac_pat_demo_chisq;&lt;BR /&gt;&lt;STRONG&gt;WARNING: Extraneous text on %MEND statement ignored for macro definition EASY4.&lt;/STRONG&gt;&lt;BR /&gt;10679 %LET NAMES= sup0_Fac_pat_demo_chisq;&lt;BR /&gt;10680 data compare_vs_nvs;&lt;BR /&gt;10681 set %easy3 %easy4;&lt;BR /&gt;MPRINT(EASY3): data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;BR /&gt;&lt;STRONG&gt;ERROR: File WORK.DATA.DATA does not exist.&lt;/STRONG&gt;&lt;BR /&gt;MPRINT(EASY3): set sup1_Fac_pat_demo2;&lt;BR /&gt;MPRINT(EASY3): status="VS at Elmhurst Hospital Center";&lt;BR /&gt;MPRINT(EASY3): run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;CODE: &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;*VS/not VS;&lt;BR /&gt;%LET NAME= sup1_Fac_pat_demo_chisq;&lt;BR /&gt;%LET NAMES= sup0_Fac_pat_demo_chisq;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro easy3;&lt;BR /&gt;data &amp;amp;NAME (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup1_Fac_pat_demo2;&lt;BR /&gt;status="VS at &amp;amp;Facility_X"; run;&lt;BR /&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro easy4;&lt;BR /&gt;data &amp;amp;NAMES (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup0_Fac_pat_demo2;&lt;BR /&gt;status="not VS at &amp;amp;Facility_X"; run;&lt;BR /&gt;%mend&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%LET NAME= sup1_Fac_pat_demo_chisq;&lt;BR /&gt;%LET NAMES= sup0_Fac_pat_demo_chisq;&lt;BR /&gt;data compare_vs_nvs;&lt;BR /&gt;set %easy3 %easy4;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2017 15:06:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255102#M6925</guid>
      <dc:creator>beverlyobeng</dc:creator>
      <dc:date>2017-06-28T15:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255107#M6927</link>
      <description>&lt;P&gt;There's a missing semicolon after:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%mend&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We've all done that at one time or another.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You should add OPTIONS MPRINT;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That way, you can see the code that is generated.&amp;nbsp; You would realize that this is not correct:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't have a data set named "data" to bring in.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 21:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255107#M6927</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-07T21:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255112#M6929</link>
      <description>&lt;P&gt;I still get the same error messages&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 22:16:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255112#M6929</guid>
      <dc:creator>beverlyobeng</dc:creator>
      <dc:date>2016-03-07T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255114#M6930</link>
      <description>Show the new log.</description>
      <pubDate>Mon, 07 Mar 2016 22:22:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255114#M6930</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-07T22:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255115#M6931</link>
      <description>data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;BR /&gt;ERROR: File WORK.DATA.DATA does not exist.&lt;BR /&gt;MPRINT(EASY3): set sup1_Fac_pat_demo2;&lt;BR /&gt;MPRINT(EASY3): status="VS at Elmhurst Hospital Center";&lt;BR /&gt;MPRINT(EASY3): run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;WARNING: The data set WORK.COMPARE_VS_NVS may be incomplete. When this step was stopped there were&lt;BR /&gt;0 observations and 24 variables.&lt;BR /&gt;WARNING: Data set WORK.COMPARE_VS_NVS was not replaced because this step was stopped.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Mar 2016 22:27:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255115#M6931</guid>
      <dc:creator>beverlyobeng</dc:creator>
      <dc:date>2016-03-07T22:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255116#M6932</link>
      <description>&lt;P&gt;Yes, you will still get the same errors.&amp;nbsp; (The Warning should be gone, however.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These changes don't fix the errors.&amp;nbsp; They merely let you examine the log to see the flaws in your program.&amp;nbsp; They are many, and substantial, and will force you to learn more about macro language to correct them.&amp;nbsp; So the first lesson is this.&amp;nbsp; You have to read the log and try to see why the errors are occurring.&amp;nbsp; The second is this.&amp;nbsp; Macro language is not processing your data.&amp;nbsp; It is building a program.&amp;nbsp; So when you code this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set %easy3 %easy4;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your expectations of what should happen are not correct.&amp;nbsp; %EASY3 does not create a data set that becomes part of the SET statement.&amp;nbsp; Instead, %EASY3 generates SAS code that adds to the SET statement.&amp;nbsp; So does %EASY4.&amp;nbsp; So this SET statement adds the generated text, and becomes:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;set&lt;/P&gt;
&lt;P&gt;data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup1_Fac_pat_demo2;&lt;BR /&gt;status="VS at &amp;amp;Facility_X"; run;&lt;/P&gt;
&lt;P&gt;data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup0_Fac_pat_demo2;&lt;BR /&gt;status="not VS at &amp;amp;Facility_X"; run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Clearly, this is not your intention as to what your SET statement should look like, nor is it a working program.&amp;nbsp; But seeing this in your log should at least guide you into making changes.&lt;/P&gt;</description>
      <pubDate>Mon, 07 Mar 2016 22:27:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255116#M6932</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-07T22:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255172#M6938</link>
      <description>The full log please so we can see the code.</description>
      <pubDate>Tue, 08 Mar 2016 07:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255172#M6938</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2016-03-08T07:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255240#M6945</link>
      <description>&lt;P&gt;&lt;BR /&gt;10745&lt;BR /&gt;10746 %macro easy3;&lt;BR /&gt;10747 data &amp;amp;NAME (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup1_Fac_pat_demo2;&lt;BR /&gt;10748 status="VS at &amp;amp;Facility_X"; run;*/Bright:641;&lt;BR /&gt;10749 %mend;&lt;BR /&gt;10750&lt;BR /&gt;10751 %macro easy4;&lt;BR /&gt;10752 data &amp;amp;NAMES (keep = sex newrace2 livingage_new&amp;amp;year. risk status); set sup0_Fac_pat_demo2;&lt;BR /&gt;10753 status="not VS at &amp;amp;Facility_X"; run;*/Bright:248;&lt;BR /&gt;10754 %mend;&lt;BR /&gt;10755&lt;BR /&gt;10756 %LET NAME= sup1_Fac_pat_demo_chisq;&lt;BR /&gt;10757 %LET NAMES= sup0_Fac_pat_demo_chisq;&lt;BR /&gt;10758 data compare_vs_nvs;&lt;BR /&gt;10759 set %easy3 %easy4;&lt;BR /&gt;MPRINT(EASY3): data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;BR /&gt;&lt;STRONG&gt;ERROR: File WORK.DATA.DATA does not exist.&lt;/STRONG&gt;&lt;BR /&gt;MPRINT(EASY3): set sup1_Fac_pat_demo2;&lt;BR /&gt;MPRINT(EASY3): status="VS at Elmhurst Hospital Center";&lt;BR /&gt;MPRINT(EASY3): run;&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;&lt;STRONG&gt;WARNING: The data set WORK.COMPARE_VS_NVS may be incomplete. When this step was stopped there were&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;0 observations and 24 variables.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;WARNING: Data set WORK.COMPARE_VS_NVS was not replaced because this step was stopped.&lt;/STRONG&gt;&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;MPRINT(EASY3): */Bright:641;&lt;BR /&gt;MPRINT(EASY4): data sup0_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;BR /&gt;MPRINT(EASY4): set sup0_Fac_pat_demo2;&lt;BR /&gt;MPRINT(EASY4): status="not VS at Elmhurst Hospital Center";&lt;BR /&gt;MPRINT(EASY4): run;&lt;/P&gt;&lt;P&gt;NOTE: There were 84 observations read from the data set WORK.SUP0_FAC_PAT_DEMO2.&lt;BR /&gt;NOTE: The data set WORK.SUP0_FAC_PAT_DEMO_CHISQ has 84 observations and 5 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:13:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255240#M6945</guid>
      <dc:creator>beverlyobeng</dc:creator>
      <dc:date>2016-03-08T14:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255252#M6948</link>
      <description>&lt;P&gt;Two questions, at this point, concerning SET %EASY3 %EASY4;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(1) Can you see in the log where the first word after "SET" is "DATA" which is not the name of an existing data set?&lt;/P&gt;
&lt;P&gt;(2) What are you expecting SET %EASY3 %EASY4; to actually do?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 14:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255252#M6948</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-03-08T14:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error Messages</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255317#M6954</link>
      <description>&lt;P&gt;From your log entry:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;set %easy3 %easy4;&lt;BR /&gt;MPRINT(EASY3): data sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;BR /&gt;&lt;STRONG&gt;ERROR: File WORK.DATA.DATA does not exist.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;set %easy3 %easy4;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Generates this code (at least in part from %easy3):&lt;/P&gt;
&lt;P&gt;set &lt;STRONG&gt;data&lt;/STRONG&gt; sup1_Fac_pat_demo_chisq (keep = sex newrace2 livingage_new2014 risk status);&lt;/P&gt;
&lt;P&gt;Which says that there should be a dataset name data somewhere to read. That is the proximate cause of the error message because you do not currently have a data set named Data in your default work library.&lt;/P&gt;
&lt;P&gt;Then the second data set sup1_Fac_pat_demo_chisq&amp;nbsp;is expected to be read with the listed variables kept. The remaining statements from %easy3 are syntactically correct but likely not what you meant to do.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2016 18:14:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/WARNING-Extraneous-text-on-MEND-statement-ignored/m-p/255317#M6954</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-03-08T18:14:47Z</dc:date>
    </item>
  </channel>
</rss>

