Hi,
I really would like help with finding out which two dates these numbers identifies in SAS;
15218
17166
I need to know if I have it correct...
/Eva
data _null_;
y1=15218;
y2=17166;
put y1 date9. / y2 date9.;
run;
Format and see
data dates;
do dates=15218,17166;
output;
end;
format dates date9.;
run;
Very nice. May i request what didn't work? I find that strange as my test yielded the correct results. Plus will help me learn from my mistakes
4915 data dates;
4916 do dates=15218,17166;
4917 output;
4918 end;
4919 format dates date9.;
4920 run;
NOTE: The data set WORK.DATES has 2 observations and 1 variables.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds
Results:
dates |
---|
31AUG2001 |
31DEC2006 |
data _null_;
y1=15218;
y2=17166;
put y1 date9. / y2 date9.;
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.