10-22-2016 12:38 AM
I have the split macro below that I have been trying to run unsuccesfuly because I get the following error; NOTE: Line generated by the macro function "I." I have tried some solutions I found online, but I really think that I'm missing smth very obvious; could someone please take a look and let me know what they think? The in.cur_mod2 dataset has 59,325 observations and I am trying to split it into smaller datasets.
Thanks in advance.
options mlogic mprint symbolgen;
if 0 then set in.cur_mod2 nobs=count;
data %do J=1 %to # orig_&J %end;;
%do I=1 %to #
then output in.cur_mod2_&I;
10-22-2016 07:55 AM
The data set names in your DATA statement do not match the names in your OUTPUT statement.
That may be a separate issue since it does not seem related to the error message you are getting.
That message might imply that one variation of your code included something like %i(........)