<?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: How to merge all files in one folder VERTICALLY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717009#M221699</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;, thank you for your suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run the code given by you and change the ":" to ";" at the first line, the result has some errors like mentioned in the log, can you please tell me what does the error mean?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;28         proc sql noprint;
29           select MEMNAME into :names separated by ' ' from DICTIONARY.TABLES where LIBNAME='MAPS';
30         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds
      

31         data WANT;
32           set &amp;amp;names.;
ERROR: File WORK.AFGHANI2.DATA does not exist.
ERROR: File WORK.AFGHANIS.DATA does not exist.
ERROR: File WORK.AFRICA.DATA does not exist.
ERROR: File WORK.AFRICA2.DATA does not exist.
ERROR: File WORK.ALGERIA.DATA does not exist.
ERROR: File WORK.ALGERIA2.DATA does not exist.
ERROR: File WORK.ANDORRA.DATA does not exist.
ERROR: File WORK.ANDORRA2.DATA does not exist.
ERROR: File WORK.ANOMALY.DATA does not exist.
ERROR: File WORK.ANTARCT2.DATA does not exist.
ERROR: File WORK.ANTARCTI.DATA does not exist.
ERROR: File WORK.ARGENTI2.DATA does not exist.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Apart from that, I have a look on .(&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi27/p191-27.pdf" target="_self"&gt;An Introduction to PROC SQL&lt;/A&gt;&amp;nbsp;), and I saw a part called concatenate the data, and I think it is similar to my work, which is&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1612517330353.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54344i138B9CC2A17D9145/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_0-1612517330353.png" alt="My97_0-1612517330353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think&amp;nbsp; we can do the same thing by using UNION ALL like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;

CREATE TABLE MERGEALL AS
SELECT *
FROM ARGENTINA
UNION ALL
/* the same code for other 62 countries*/
SELECT *
FROM ZAMBIA;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I know it is very suboptimal but I am wondering if it is a solution, and if it is a solution, is there anyway to optimize the code by using UNION ALL in PROC SQL like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks and warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2021 09:32:03 GMT</pubDate>
    <dc:creator>Phil_NZ</dc:creator>
    <dc:date>2021-02-05T09:32:03Z</dc:date>
    <item>
      <title>How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716957#M221665</link>
      <description>&lt;P&gt;Hi SAS Users,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know how to merge all sheets in one file horizontally, but today I face a problem of merging files vertically, I am wondering if you can help me to sort it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So my code to import all 64 files sas7bdat is as below&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*Inserting all files*/

%macro importdata(File=,outf=);
Libname input 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation';

    data &amp;amp;outf.;

    set input.&amp;amp;outf._;

  run;
%mend;

filename mydir 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation';
data _null_;
did = dopen('mydir');
do i = 1 to dnum(did);
  fname = scan(dread(did,i),1,'.');
  /*At this point I assign that the filename has the suffix is xlsx or sas7bdat
  fname= ARGENTINA_*/
  length short_fn $29;
  short_fn= substr(fname, 1,length(fname)-1);
  /*short_fn=ARGENTINA*/

  cmd=cats('%importdata(File=C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation\',
      strip(fname),',outf=',short_fn,');');
  call execute(cmd);
end;
keep fname;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;And the results I have is as below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1612498060049.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54334i4BBED76E7A871747/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_0-1612498060049.png" alt="My97_0-1612498060049.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;All 64 files having the same column, I want to merge these 64 files together vertically. Simply speaking, converting 64 countries to one country.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I also used Proc contents to retrieve the format of all variables in one file if it facilitates you in coding&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_1-1612498261529.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54335i31E20D8F31ECC483/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_1-1612498261529.png" alt="My97_1-1612498261529.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_2-1612498295035.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54336i0A87D7F7EE0D3BF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_2-1612498295035.png" alt="My97_2-1612498295035.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_3-1612498325056.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54337i6A1A7452ADF3FCBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_3-1612498325056.png" alt="My97_3-1612498325056.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_4-1612498362743.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54338iD1149FF0FE877628/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_4-1612498362743.png" alt="My97_4-1612498362743.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I am wondering if you can please explain to me what does the "&lt;STRONG&gt;#&lt;/STRONG&gt;" column (first column) of the&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV id="IDX2"&gt;
&lt;TABLE class="table" aria-label="Variables"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Alphabetic List of Variables and Attributes&amp;nbsp;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;SPAN style="font-family: inherit;"&gt;table above indicate?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Many thanks and warmest regards.&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>Fri, 05 Feb 2021 04:16:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716957#M221665</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-05T04:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716966#M221669</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;And I am wondering if you can please explain to me what does the "&lt;STRONG&gt;#&lt;/STRONG&gt;" column (first column) of the&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV id="IDX2"&gt;
&lt;TABLE class="table" aria-label="Variables"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH class="c b header" colspan="7" scope="colgroup"&gt;Alphabetic List of Variables and Attributes&amp;nbsp;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;SPAN style="font-family: inherit;"&gt;table above indicate?&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The number is the position of the variable in the dataset.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 05:27:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716966#M221669</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-05T05:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716968#M221671</link>
      <description>&lt;P&gt;Mock-up code to &lt;STRONG&gt;retrieve&amp;nbsp;&lt;/STRONG&gt;the table names and then &lt;STRONG&gt;concatenate&lt;/STRONG&gt; them:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint:
  select MEMNAME into :names separated by ' ' from DICTIONARY.TABLES where LIBNAME='MAPS';
quit;
data WANT;
  set &amp;amp;names.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Why would you do this?&lt;/P&gt;
&lt;P&gt;Maybe a view is better?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data V_WANT/view=V_WANT;
  set &amp;amp;names.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 05:38:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716968#M221671</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-05T05:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716969#M221672</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;So my code to import all 64 files sas7bdat is as below&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You don't "import" datasets, see &lt;A href="https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-import-all-files-in-one-folder-without-using/m-p/716949" target="_blank" rel="noopener"&gt;https://communities.sas.com/t5/SAS-Programming/Is-there-any-way-to-import-all-files-in-one-folder-without-using/m-p/716949&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The following code is hardly tested:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname input 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation' access=readonly; 

data _null_;
   set sashelp.vtable(where=(LibName = 'INPUT'));
   
   length dataset $ 42;
   
   if _n_ = 1 and exist('work.AllCountries') then do;
      call execute('proc delete data=work.AllCountries;run;');
   end;
   
   dataset = cats(LibName, '.', MemName);
   
   call execute(cats('proc append base=work.AllCountries data=', dataset, ';run;'));
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: The code suggested by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt; is, of course, much easier to read, and avoids unnecessary consumption of disk space.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 05:44:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716969#M221672</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-05T05:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716978#M221677</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;EDIT: The code suggested by&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961" target="_blank"&gt;@ChrisNZ&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;is, of course, much easier to read, and avoids unnecessary consumption of disk space.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;SAS is not very efficient dealing with a large number of open tables. 64 tables is probably starting to get there.&amp;nbsp;&lt;BR /&gt;This, and proc append processing data in bulk, might mean that your solution is more efficient than my bare-bone code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 07:27:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/716978#M221677</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-05T07:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717009#M221699</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;, thank you for your suggestion.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I run the code given by you and change the ":" to ";" at the first line, the result has some errors like mentioned in the log, can you please tell me what does the error mean?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;28         proc sql noprint;
29           select MEMNAME into :names separated by ' ' from DICTIONARY.TABLES where LIBNAME='MAPS';
30         quit;
NOTE: PROCEDURE SQL used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds
      

31         data WANT;
32           set &amp;amp;names.;
ERROR: File WORK.AFGHANI2.DATA does not exist.
ERROR: File WORK.AFGHANIS.DATA does not exist.
ERROR: File WORK.AFRICA.DATA does not exist.
ERROR: File WORK.AFRICA2.DATA does not exist.
ERROR: File WORK.ALGERIA.DATA does not exist.
ERROR: File WORK.ALGERIA2.DATA does not exist.
ERROR: File WORK.ANDORRA.DATA does not exist.
ERROR: File WORK.ANDORRA2.DATA does not exist.
ERROR: File WORK.ANOMALY.DATA does not exist.
ERROR: File WORK.ANTARCT2.DATA does not exist.
ERROR: File WORK.ANTARCTI.DATA does not exist.
ERROR: File WORK.ARGENTI2.DATA does not exist.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Apart from that, I have a look on .(&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi27/p191-27.pdf" target="_self"&gt;An Introduction to PROC SQL&lt;/A&gt;&amp;nbsp;), and I saw a part called concatenate the data, and I think it is similar to my work, which is&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1612517330353.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54344i138B9CC2A17D9145/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_0-1612517330353.png" alt="My97_0-1612517330353.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I think&amp;nbsp; we can do the same thing by using UNION ALL like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;

CREATE TABLE MERGEALL AS
SELECT *
FROM ARGENTINA
UNION ALL
/* the same code for other 62 countries*/
SELECT *
FROM ZAMBIA;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I know it is very suboptimal but I am wondering if it is a solution, and if it is a solution, is there anyway to optimize the code by using UNION ALL in PROC SQL like that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks and warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 09:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717009#M221699</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-05T09:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717019#M221704</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15475"&gt;@andreas_lds&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your suggestion. I try to run your code and it announce something like that&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;28         libname input 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation' access=readonly;
NOTE: Libref INPUT was successfully assigned as follows: 
      Engine:        V9 
      Physical Name: C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation
29         
30         data _null_;
31            set sashelp.vtable(where=(LibName = 'INPUT'));
32         
33            length dataset $ 42;
34         
35            if _n_ = 1 and exist('work.AllCountries') then do;
36               call execute('proc delete data=work.AllCountries;run;');
37            end;
38         
39            dataset = cats(LibName, '.', MemName);
40         
41            call execute(cats('proc append base=work.AllCountries data=', dataset, ';run;'));
42         run;

NOTE: There were 64 observations read from the data set SASHELP.VTABLE.
      WHERE LibName='INPUT';
NOTE: DATA statement used (Total process time):
      real time           0.55 seconds
      cpu time            0.04 seconds
      

NOTE: CALL EXECUTE generated line.
1         + proc append base=work.AllCountries data=INPUT.ARGENTINA_;run;

NOTE: Appending INPUT.ARGENTINA_ to WORK.ALLCOUNTRIES.
2                                                          The SAS System                             22:57 Friday, February 5, 2021

NOTE: BASE data set does not exist. DATA file is being copied to BASE file.
NOTE: There were 1013 observations read from the data set INPUT.ARGENTINA_.
NOTE: The data set WORK.ALLCOUNTRIES has 1013 observations and 108 variables.
NOTE: PROCEDURE APPEND used (Total process time):
      real time           0.02 seconds
      cpu time            0.00 seconds
      

2         + proc append base=work.AllCountries data=INPUT.AUSTRALIA_;run;

NOTE: Appending INPUT.AUSTRALIA_ to WORK.ALLCOUNTRIES.
WARNING: Variable ENAME has different lengths on BASE and DATA files (BASE 62 DATA 82).
WARNING: Variable MNEM has different lengths on BASE and DATA files (BASE 6 DATA 9).
WARNING: Variable WC07536 has different lengths on BASE and DATA files (BASE 15 DATA 19).
WARNING: Variable WC09802 has different lengths on BASE and DATA files (BASE 4 DATA 22).
WARNING: Variable TYPE_1 has different lengths on BASE and DATA files (BASE 2 DATA 4).
WARNING: Variable EXNAME has different lengths on BASE and DATA files (BASE 12 DATA 21).
WARNING: Variable GEOGN has different lengths on BASE and DATA files (BASE 18 DATA 16).
WARNING: Variable acc_sta has different lengths on BASE and DATA files (BASE 43 DATA 62).
ERROR: No appending done because of anomalies listed above. Use FORCE option to append these files.
NOTE: 0 observations added.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you please give me a hint to sort it out? Apart from that, can I ask from where you have the library&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;work.AllCountries&lt;/LI-CODE&gt;
&lt;P&gt;And could you please guide me why you delete in this code ?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;if _n_ = 1 and exist('work.AllCountries') then do;
      call execute('proc delete data=work.AllCountries;run;');
   end;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Warmest regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 10:03:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717019#M221704</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-05T10:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717028#M221709</link>
      <description>&lt;P&gt;You need to slightly expand the SQL code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql noprint:
  select catx(".",libname,MEMNAME) into :names separated by ' '
  from DICTIONARY.TABLES where LIBNAME='MAPS';
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Feb 2021 10:22:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717028#M221709</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-02-05T10:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717032#M221712</link>
      <description>&lt;P&gt;For "vertical merging" (aka appending) data, it is necessary that each variable is defined in exactly the same way in all datasets. The code to fix such issues is more or less trivial, you should request that such issues are fixed by the person creating the datasets.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2021 10:32:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717032#M221712</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-02-05T10:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717266#M221793</link>
      <description>&amp;gt; ERROR: File WORK.AFGHANI2.DATA does not exist.&lt;BR /&gt;Come on. You need to try harder and understand what the code does.  &lt;BR /&gt;Modify the values that go    INTO :    the macro variable so it also includes the library name instead of just MEMNAME.&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Feb 2021 07:35:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717266#M221793</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-06T07:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717270#M221794</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/16961"&gt;@ChrisNZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, I am trying to read again and make sure I do not miss any information and trying to fully understand the code given.&lt;/P&gt;
&lt;P&gt;Back to the code suggested by you&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;proc sql noprint:
  select MEMNAME into :names separated by ' ' from DICTIONARY.TABLES where LIBNAME='MAPS';
quit;
data WANT;
  set &amp;amp;names.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I mostly understand the code, except the LIBNAME='MAPS'&lt;/P&gt;
&lt;P&gt;I try to google but there is no result so far regarding 'MAPS', could you please give me a source that I can read about 'MAPS'?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks for your dedicated help so far and warm regards.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 09:00:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717270#M221794</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-06T09:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717283#M221795</link>
      <description>&lt;P&gt;You need something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="sas"&gt;proc sql noprint:
  select cats(LIBNAME,'.',MEMNAME) into :names separated by ' ' from DICTIONARY.TABLES where LIBNAME='WORK';
quit;
data WANT;
  set &amp;amp;names.;
run;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;MAPS is standard SAS library where country maps are found. I picked it just because you had country data set names.&lt;/P&gt;
&lt;P&gt;You are asking about a simple WHERE clause used to select which tables you want to keep.&lt;/P&gt;
&lt;P&gt;Since your tables seem to be in the WORK library, maybe that's the library you need in the WHERE clause.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 10:53:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717283#M221795</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-06T10:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717284#M221796</link>
      <description>&lt;P&gt;You might also want to use the INDSNAME option if the country name is not in the source tables.&lt;/P&gt;</description>
      <pubDate>Sat, 06 Feb 2021 10:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717284#M221796</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-02-06T10:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717297#M221797</link>
      <description>&lt;P&gt;Are all of these dataset supposed to contain the same variables?&amp;nbsp; If so then why do they have different lengths for some of the variables (or worse different types)?&amp;nbsp; How were these datasets created?&amp;nbsp; Can you fix the step that created them to insure that they are all defining the variables in the same way?&amp;nbsp; For example if you created the datasets originally by converting a text file, like a CSV file, into the SAS datasets then use the same data step code to define for each.&amp;nbsp; Or better just read all of the source text files in a single data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you cannot fix the issue earlier in the process then you will need to figure what length (and type) to use for each variable. For character variables just define the length as the maximum length the variable has in any of the datasets.&amp;nbsp; For type mismatches you will want to pick a type and convert them.&amp;nbsp; How to pick a type depends on what is in the data.&amp;nbsp; If the most datasets have the variable as numeric and the few that have it as character all of the actual non-blank values n those dataset are digit strings that could be convert into a number then make the variable numeric.&amp;nbsp; &amp;nbsp;(Note this is also true for date values.&amp;nbsp; If all of the strings in the datasets where the date variable is character are strings that can be converted into a date then define the variable as numeric and convert the variable to numeric using an appropriate date informat.).&amp;nbsp; But if some of the strings cannot be numbers than convert the variables that are numeric to character.&amp;nbsp; &amp;nbsp;Note that if one dataset has the variable of the wrong type but all of the variables are missing (or blank for character variables) then just drop the variable from that dataset.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So how do you figure it out?&amp;nbsp; Look at the list of variables. For eaxmple by using PROC CONTENTS.&lt;/P&gt;
&lt;P&gt;You can program some of the checks .&amp;nbsp; So this code will make a list all of the variable names that includes a count of how many times it is numeric and how many times it is character and the maximum length.&amp;nbsp; It then prints just the names that have any type mismatches .&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=INPUT._ALL_ noprint out=contents;
run;
proc sql ;
create table variables as 
  select upcase(name) as name
          , count(type=1) as n_num
         ,  count(type=2) as n_char
         , max(length) as max_length
 from contents
  group by 1
;
quit;
proc print data=variables;
  where n_num&amp;gt;0 and n_char&amp;gt;0 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You can use that to generate code to define the type/length of every variable.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename code temp;
data _null_;
  set variables end=eof;
  if _n_=1 then put 'length';
  put @3 name @ ;
  if n_char then put '$' @;
  put max_length ;
  if eof then put ';' ;
run;
data skeleton ;
  %include code / source2;
  stop;
run;
  &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Now to make your overall dataset just add that empty SKELETON dataset as the first in the list.&amp;nbsp; Make sure to remove any formats attached to the character variables.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  set skeleton &amp;amp;dslist ;
  format _character_ ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 06 Feb 2021 12:56:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717297#M221797</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-06T12:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717341#M221815</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your kindness and dedicated explanation. However, just stop by at the "pointing out numeric and character" types of variable:&lt;/P&gt;
&lt;P&gt;From coding, I compare the results from your code and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;'s code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code is&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=INPUT._ALL_ noprint out=contents;
run;
proc sql ;
create table variables as 
  select upcase(name) as name
          , count(type=1) as n_num
         ,  count(type=2) as n_char
         , max(length) as max_length
 from contents
  group by 1
;
quit;
proc print data=variables;
  where n_num&amp;gt;0 and n_char&amp;gt;0 ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;'s code is&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Libname input 'C:\Users\pnguyen\OneDrive - Massey University\PhD JOURNEY\3calculation - Copy' access=readonly;

proc format;
value showx
low-high='x'
;
run;
proc tabulate data=sashelp.vcolumn;
   where libname='INPUT' and memtype='DATA';
   class memname name type length;
   table name*type*length,
         memname*n=' '*f=showx.
         /misstext=' '
   ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I add results of both of you and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;as the additional file, here I just screenshot quite a bit&lt;/P&gt;
&lt;P&gt;Your approach:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1612659389709.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54416i1C652FA2D9C4F935/image-size/medium?v=v2&amp;amp;px=400" role="button" title="My97_0-1612659389709.png" alt="My97_0-1612659389709.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The result is funny because in &lt;STRONG&gt;contents&lt;/STRONG&gt; Table, at least in &lt;STRONG&gt;Argentina_&lt;/STRONG&gt; file, I can see there are variables that receive value 1 and other receive value 2 in "TYPE", so there should be no way that n_num=n_char=64&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_0-1612668264265.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54419i6774DC693D32F722/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_0-1612668264265.png" alt="My97_0-1612668264265.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And it is the result from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="My97_1-1612659455678.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/54417i0C3155DADF0D1335/image-size/large?v=v2&amp;amp;px=999" role="button" title="My97_1-1612659455678.png" alt="My97_1-1612659455678.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;From ballardw's approach, there are 10 countries having the BDATE as numeric, while the result from your approach just say each variable in 64 files all have char and numeric, I am quite confused about that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw&lt;/a&gt;&amp;nbsp;'s approach, there is only BDATE having char and num, the others are consistent in data type across all 64 files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And could you please explain more about the code, and can you please make an example to define the type/length of a specific variable, for example BDATE?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename code temp;
data _null_;
  set variables end=eof;
  if _n_=1 then put 'length';
  put @3 name @ ;
  if n_char then put '$' @;
  put max_length ;
  if eof then put ';' ;
run;
data skeleton ;
  %include code / source2;
  stop;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Many thanks and cheers!&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 04:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717341#M221815</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-07T04:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717349#M221820</link>
      <description>&lt;P&gt;I will say that I am often too lazy to try to work out all of the says SQL needs to be set up with groups and such try to do any kind of complicated summary.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 07 Feb 2021 04:44:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717349#M221820</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-02-07T04:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717352#M221823</link>
      <description>&lt;P&gt;You did something wrong.&amp;nbsp; If you have 64 datasets then the same name cannot be both numeric and character in all 64 datasets.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this is a one off problem just craft the code by hand instead of trying to get too complex in doing metadata analysis with code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the structure you will need.&amp;nbsp; Let's just assume that BDATE is the only problem variable.&amp;nbsp; So in this example any dataset where BDATE is char we add the RENAME= dataset option to rename BDATE to BDATE_CHAR.&amp;nbsp; Then you can also add some code to try to convert the numeric BDATE variables in date strings to store in BDATE_CHAR.&amp;nbsp; Whether that is really what you want to do depends on what type of gibberish you actually have in those fields.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am not going to retype your dataset names from the photographs you keep pasting (why do people of the trouble of making screen grabs and figuring out how to post them into this forum instead of just copying and pasting the text????)&amp;nbsp; so I will just make up a couple of dataset names to show the pattern.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data want;
  length ac_pay 8 acc_sta $62 bdate 8  bdate_char $10 ...... ;
  set input.argentina
      input.brazil (rename=(bdate=bdate_char))
      ...
  ;
  bdate_char=coalescec(bdate_char,put(bdate,yymmdd10.));
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2021 05:02:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717352#M221823</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-07T05:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717402#M221845</link>
      <description>&lt;P&gt;Use SUM() instead of COUN()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;sum(type=1)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 07 Feb 2021 14:59:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717402#M221845</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-02-07T14:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to merge all files in one folder VERTICALLY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717443#M221876</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Yes, it works, when we change from count to sum.&lt;BR /&gt;&lt;BR /&gt;Many thanks and warmest regards.</description>
      <pubDate>Sun, 07 Feb 2021 20:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-merge-all-files-in-one-folder-VERTICALLY/m-p/717443#M221876</guid>
      <dc:creator>Phil_NZ</dc:creator>
      <dc:date>2021-02-07T20:12:30Z</dc:date>
    </item>
  </channel>
</rss>

