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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.
Ready to level-up your skills? Choose your own adventure.