And anothe approach with DO Until:
data list;
snapshot = input("&strte.",yymmn6.);
do until (snapshot > input("&ende",yymmn6.));
output;
snapshot= intnx('month',snapshot,1);
end;
format snapshot yymmn6.;
run;
Exercise for the interested reader to modify to a DO WHILE loop.
... View more