Hi,
I am trying to calculate age using intck function and am getting "Log Window Full" pop up message (multiple times) during the run, any insights what am I doing wrong here. The date formats are ddmmyy10.
data test2
set test1;
AgeR = intck('day',date1, date2);
put AgeR;
run;
You PUT statement generates one line of output in the log for every record in your data set. If you are testing code I suggest using an option to only put a few values, possibly using a smaller test set or the data set option obs=.
Or remove the PUT.
Secondarily (not affecting your original question), you don't need INTCK to calculate the number of days between two dates. Sufficient:
AgeR = date2 - date1;
@AZIQ1 wrote:
This simple formula is not working somehow, do I need to change the format?
Provide more details.
options error=0; data test2; ............
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.