<?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: SAS Macro Combining Data Statement is not valid or it is out of proper order in SAS/IML Software and Matrix Computations</title>
    <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191795#M1984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Any comment will be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a special Support Community for questions about macro and the DATA step: &lt;A _jive_internal="true" href="https://communities.sas.com/community/support-communities/sas_macro_facility_data_step_and_sas_language_elements"&gt;https://communities.sas.com/community/support-communities/sas_macro_facility_data_step_and_sas_language_elements&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Oct 2014 12:21:46 GMT</pubDate>
    <dc:creator>Rick_SAS</dc:creator>
    <dc:date>2014-10-21T12:21:46Z</dc:date>
    <item>
      <title>SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191792#M1981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just started to learn macro and want to accomplish a few things with my current codes.&lt;/P&gt;&lt;P&gt;1. dynamic import many csv files into sas (which should be done)&lt;/P&gt;&lt;P&gt;2. combining the imported data file and make it into one giant file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first part works well however the second part (bold) does not work and has the log errors. I basically used the same code but don't why there is the Statement is not valid or it is out of proper order&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any comment will be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;Part1:&lt;/P&gt;&lt;P&gt;*CASE base Upload/&lt;BR /&gt;%macro import_data(ProviderID=);&lt;BR /&gt;proc import datafile="/PROJECTS/BMW/3D/RAW/CASE/BASE/&amp;amp;ProviderID._CASE_Base.csv" dbms=csv out=Raw._&amp;amp;ProviderID&amp;nbsp; replace;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%mend import_data;&lt;/P&gt;&lt;P&gt;data data_torun;&lt;BR /&gt;input filenum;&lt;BR /&gt;datalines;&lt;BR /&gt;0&lt;BR /&gt;1389&lt;BR /&gt;2690&lt;BR /&gt;3163&lt;BR /&gt;3168&lt;BR /&gt;3169&lt;BR /&gt;;;;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;BR /&gt;select cats('%import_data(ProviderID=',filenum,')') into :listtorun &lt;BR /&gt; separated by ' '&lt;BR /&gt; from data_torun;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;amp;listtorun.;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;BR /&gt;Part 2:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;*Combine CASE File/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;proc&amp;nbsp; datasets library=Raw nolist;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;%macro Combine_data(ProviderID=);&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;append base=Raw._0 data=Raw._&amp;amp;ProviderID force;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;%mend Combine_data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data data_torun1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;input filenum;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;datalines;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;1389&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;2690&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3163&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3168&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;3169&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;;;;;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc sql;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;select cats('%Combine_data(ProviderID=',filenum,')') into :listtorun1 &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; separated by ' '&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt; from data_torun1;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;quit;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;listtorun1.;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;Log&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;NOTE:&lt;BR /&gt;Compression was disabled for data set WORK.DATA_TORUN1 because compression&lt;BR /&gt;overhead&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; would increase the size of the data set.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;NOTE:&lt;BR /&gt;The data set WORK.DATA_TORUN1 has 5 observations and 1 variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;NOTE:&lt;BR /&gt;DATA statement used (Total process time):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; real time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.00 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cpu time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.01 seconds&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;4046&amp;nbsp; &amp;amp;listtorun1.;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;NOTE:&lt;BR /&gt;Line generated by the invoked macro "COMBINE_DATA".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;4046&amp;nbsp;&amp;nbsp;&amp;nbsp; append base=Raw._0&lt;BR /&gt;data=Raw._&amp;amp;ProviderID force;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;MPRINT(COMBINE_DATA):&amp;nbsp;&amp;nbsp; append base=Raw._0 data=Raw._1389 force;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;ERROR&lt;BR /&gt;180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;MPRINT(COMBINE_DATA):&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;NOTE:&lt;BR /&gt;Line generated by the invoked macro "COMBINE_DATA".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;4046&amp;nbsp;&amp;nbsp; append base=Raw._0 data=Raw._&amp;amp;ProviderID&lt;BR /&gt;force;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;MPRINT(COMBINE_DATA):&amp;nbsp;&amp;nbsp; append base=Raw._0 data=Raw._2690 force;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;ERROR&lt;BR /&gt;180-322: Statement is not valid or it is used out of proper order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;MPRINT(COMBINE_DATA):&amp;nbsp;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;NOTE:&lt;BR /&gt;Line generated by the invoked macro "COMBINE_DATA".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;4046&amp;nbsp;&amp;nbsp; append base=Raw._0 data=Raw._&amp;amp;ProviderID&lt;BR /&gt;force;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Consolas;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 180&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 03:56:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191792#M1981</guid>
      <dc:creator>kiddcao</dc:creator>
      <dc:date>2014-10-21T03:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191793#M1982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P style="text-align: center;"&gt;&lt;BR /&gt;Part 2:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;*Combine CASE File/&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;proc&amp;nbsp; datasets library=Raw nolist;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;%macro Combine_data(ProviderID=);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;append base=Raw._0 data=Raw._&amp;amp;ProviderID force;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;run;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;%mend Combine_data;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you want to use the APPEND statement of PROC DATASET, so why the line 2 before&amp;nbsp; line 3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you want to use PROC APPEND?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this &lt;A href="http://www.sascommunity.org/wiki/PROC_APPEND_Alternatives"&gt;PROC APPEND Alternatives&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 05:53:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191793#M1982</guid>
      <dc:creator>mohamed_zaki</dc:creator>
      <dc:date>2014-10-21T05:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191794#M1983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been covered many times on this forum.&amp;nbsp; You don't need macros for this.&amp;nbsp; Also it is not good form to put macro statements in actual code like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simple code is:&lt;/P&gt;&lt;P&gt;/* Assuming you want a list of files from one directory */&lt;/P&gt;&lt;P&gt;filename tmp pipe 'dir "c:\temp\*.xls" /b';&lt;/P&gt;&lt;P&gt;data dir;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length buffer $200.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile tmp dsd lrecl=32767 missover;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input buffer $varying200.;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Now for each filename in the list import and add to big dataset - note that each import file needs to be very similar or you will get warnings/errors!! */&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set dir;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if _n_=1 then call execute('proc import datafile="'||strip(buffer)||'" out=work.total replace; run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else call execute('proc import datafile="'||strip(buffer)||'" out=tmp replace; run;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data total; set total tmp; run;');&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 08:41:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191794#M1983</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-10-21T08:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191795#M1984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Any comment will be greatly appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a special Support Community for questions about macro and the DATA step: &lt;A _jive_internal="true" href="https://communities.sas.com/community/support-communities/sas_macro_facility_data_step_and_sas_language_elements"&gt;https://communities.sas.com/community/support-communities/sas_macro_facility_data_step_and_sas_language_elements&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 12:21:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191795#M1984</guid>
      <dc:creator>Rick_SAS</dc:creator>
      <dc:date>2014-10-21T12:21:46Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191796#M1985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys thank so much! Yep it is just a silly mistake that I forget to add PROC before amend...it works well now. Again it is my second week of experience in SAS so I am a bit lost. Thanks again1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 13:00:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191796#M1985</guid>
      <dc:creator>kiddcao</dc:creator>
      <dc:date>2014-10-21T13:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191797#M1986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems that it is nothing with IML . You misunderstand what macro should do .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;%macro Combine_data(ProviderID=);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;append base=Raw._0 data=Raw._&amp;amp;ProviderID force;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;%mend Combine_data;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;*Combine CASE File/&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;proc&amp;nbsp; datasets library=Raw nolist;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; %&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;Combine_data&lt;/STRONG&gt;(&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;ProviderID&lt;/STRONG&gt;=1)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt; %&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;Combine_data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;(&lt;/SPAN&gt;&lt;STRONG style="font-family: inherit; font-style: inherit;"&gt;ProviderID&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;=2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;...................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 13:17:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191797#M1986</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-10-21T13:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191798#M1987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi RW9, when I run your code it has the "Variable name containing length expected after $VARYING200", how can I solve it? thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:02:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191798#M1987</guid>
      <dc:creator>kiddcao</dc:creator>
      <dc:date>2014-10-22T14:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Macro Combining Data Statement is not valid or it is out of proper order</title>
      <link>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191799#M1988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;data dir;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; length buffer $200.;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; infile tmp dsd lrecl=32767 missover &lt;STRONG&gt; length=len&lt;/STRONG&gt; ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input buffer $varying200.&amp;nbsp; &lt;STRONG&gt;len&lt;/STRONG&gt; ;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 14:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-IML-Software-and-Matrix/SAS-Macro-Combining-Data-Statement-is-not-valid-or-it-is-out-of/m-p/191799#M1988</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-10-22T14:05:31Z</dc:date>
    </item>
  </channel>
</rss>

