I have a single file of about 15G with 2 years of data. I tried to separate the two years into two different files with the following partial SAS codes. Say, the intermediate processed data is called A_20112012_xxx, and the separated ones are B_2011_xxx, B_2012_xxx.
%let column = years;
proc sql noprint; select distinct cat ("data B", &column., "xxx;" , "set A_20112012_xxx;" , "where &column=", &column., ";" , "run;" ) into :SplitSteps separated by ";" from A_20112012_xxx; quit; &SplitSteps;
Although there was no issue to separate them one by one, it always resulted in an error message of not enough space if doing the above way. The reason to do this is that there are files with more than 2 years, which need to be separated. I just want to automate the process.
What's the possible reason for the not enough space error?