Hello, I don't understand why my first program works and the second no (only changing the looping). I need to add the currently month in the loop if anyone have ideas thanks a lot. %let runasofdate= 20140101; data creation; rundate = input(put(&runasofdate,8.),yymmdd8.); array psc0010_begin_date(*) psc0010_begin_date0-psc0010_begin_date11; array psc0010_end_date(*) psc0010_end_date0-psc0010_end_date11; do i =1 to 11 ; psc0010_begin_date(i) = intnx('month',rundate,i,'begin'); psc0010_end_date(i)= intnx ('month', rundate, i , 'end'); end; run; And the second program doesn't working .. %let runasofdate= 20140101; data creation; rundate = input(put(&runasofdate,8.),yymmdd8.); array psc0010_begin_date(*) psc0010_begin_date0-psc0010_begin_date11; array psc0010_end_date(*) psc0010_end_date0-psc0010_end_date11; do i =0 to 11 ; psc0010_begin_date(i) = intnx('month',rundate,i,'begin'); psc0010_end_date(i)= intnx ('month', rundate, i , 'end'); end; run; Thanks
... View more