Hello Everyone, I have created a small utility that can resolve the start and end of every month. The code is running fine all the macro variable are resolving as they should have, but the issue is when I am using those macro variables later in my programming then they are not getting resolved. Kindly find attached the code... OPTIONS MLOGIC MPRINT SYMBOLGEN;
%MACRO MONTHLY;
%DO J=0 %TO 12;
%LET MONSTRT=STRT;
%LET MONEND=END;
DATA _NULL_;
CALL SYMPUT ("&MONSTRT.&J.",PUT(INTNX("MONTH",TODAY(),&J,"B"),DATE9.));
CALL SYMPUT ("&MONEND.&J.",PUT(INTNX("MONTH",TODAY(),&J,"E"),DATE9.));
RUN;
%END;
%PUT &STRT0 &END0 &STRT1 &END1 &STRT2 &END2 &STRT3 &END4 &STRT5 &END5 &STRT6 &END6
&STRT7 &END7 &STRT8 &END8 &STRT9 &END9 &STRT10 &END10 &STRT11 &END11 &STRT12 &END12;
%MEND MONTHLY;
%MONTHLY;
DATA TEST;
XX='&STRT0.';
RUN;
... View more