741 proc format;
742 value mydate 0,1=[1.] other=[date9.];
NOTE: Format MYDATE is already on the library WORK.FORMATS.
NOTE: Format MYDATE has been output.
743 run;
NOTE: PROCEDURE FORMAT used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds
744 data _null_;
745 do x=-1 to 2,today();
746 put x= comma7. +1 x=mydate9.;
747 end;
748 run;
x=-1 x=31DEC1959
x=0 x=0
x=1 x=1
x=2 x=03JAN1960
x=21,746 x=16JUL2019
SAS Innovate 2025: Register Now
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9. Sign up by Dec. 31 to get the 2024 rate of just $495. Register now!