From: saslearn chicago on 15 Jan 2010 17:08 Hello, Can I use an Do while inside an Marco - with loop condition. ? %macro Week_combine(); %do loop = 1 %to &TotWeek-1; n=0; do while(n<=&loop); data r2; set Week_n; n+1; end; run; %end; ; run; %mend Week_combine; I have data sets from Week_0 , week_1 ......week_n in the above code , the &Totweek will contain the total nbr of week (week_n) , I am trying to start from week_1, to combine the data set week_0 and week_ 1 week_2 , to combine the data set week_0 and week_ 1 and week_2 ....etc Error message : 098 %Week_combine; NOTE: Line generated by the invoked macro "WEEK_COMBINE". 1 n=0; - 180 MPRINT(WEEK_COMBINE): n=0; ERROR 180-322: Statement is not valid or it is used out of proper orde can someone please advice , what I am doing wrong in the code .. Thanks - Swamy
|
Pages: 1 Prev: SAS and MS SharePoint? Next: proc mixed: multicolinearity |