08-14-2017 06:31 PM - edited 08-14-2017 06:32 PM
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.
AgeR = intck('day',date1, date2);
08-14-2017 06:43 PM
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.
08-14-2017 06:52 PM
Secondarily (not affecting your original question), you don't need INTCK to calculate the number of days between two dates. Sufficient:
AgeR = date2 - date1;