DATA Step, Macro, Functions and more

Intck Function - Log WINDOW FULL message

Reply
Frequent Contributor
Posts: 81

Intck Function - Log WINDOW FULL message

[ Edited ]

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;

Super User
Posts: 13,498

Re: Intck Function - Log WINDOW FULL message

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.

Super User
Posts: 6,751

Re: Intck Function - Log WINDOW FULL message

Secondarily (not affecting your original question), you don't need INTCK to calculate the number of days between two dates.  Sufficient:

 

AgeR = date2 - date1;

Frequent Contributor
Posts: 81

Re: Intck Function - Log WINDOW FULL message

Posted in reply to Astounding
This simple formula is not working somehow, do I need to change the format?
Super User
Posts: 23,661

Re: Intck Function - Log WINDOW FULL message


AZIQ1 wrote:
This simple formula is not working somehow, do I need to change the format?

Provide more details. 

Super User
Posts: 10,761

Re: Intck Function - Log WINDOW FULL message

options error=0;
data test2;
 ............


Ask a Question
Discussion stats
  • 5 replies
  • 191 views
  • 0 likes
  • 5 in conversation