This is to follow the post Efficiently concatenate many sas datasets: Efficiently concatenate many sas datasets
Well, I'm having a similar task, i.e to concatenate more than 10000 sas tables of the same structure. Each table consists of 2 rows and 13 columns and are named in sequential (data, data1, data 2, ...). All my tables are saved in an external drive: "D:\MySASfolder\". The concatenation using SET in datastep seems to be running out of memory and the proc append may be the solution. However, I've some difficulties to understand the code made by BellevueBob, in particular I'm not sure how the macro can revoke my 10000 data tables. Can anyone please help me to go through the code lines please. Many thanks, Mai
%do
loop to work through all the tables. Do a bit of background reading on SAS macros and then post another question if there's a part of it that you still don't understand. – user667489data want; set data data1-data9999; run;
Does it work with than many datasets referenced in a single SET statement? – Tom