Answer Posted / natrajboga
the INTCK function counts the number of intervals between
the two dates
where as INTCX function advances the date or time values
by a given interval and returns a date or time values
for example:
data xxx;
count= intck('week','1aug1998'd,'31aug1998'd);
run;
proc print;run;
the result would be 5 (it represents the no of weeks)
data yyy;
count= intnx('month','1aug1998'd,1);
run;
proc print;run;
the result would be the 1sep1998. becaz it corresponds to
the beginning of the next interval.
| Is This Answer Correct ? | 15 Yes | 1 No |
Post New Answer View All Answers
Differentiate between ceil and floor functions.
Can you execute macro within another macro? If so, how would sas know where the current macro ended and the new one began? : sas-macro
How to convert a numeric variable to a character variable?
Which function is used to count the number of intervals between two sas dates?
For what purposes have you used sas macros? : sas-macro
what is treatment emergent events and treatment emregent adverse event
This entry was posted in General. Bookmark the permalink. Post a comment or leave
explain about data integrator metadata reports? : Sas-di
What is the basic structure of a sas program?
what other sas products have you used and consider yourself proficient in using? : Sas programming
what is the effect of the options statement errors=1? : Sas programming
Explain what is data step?
What are the data types that sas contain?
What function CATX syntax does?
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di