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
What commands are used in the case of including or excluding any specific variables in the data set?
What is the difference between the proc sql and data step?
what is the effect of the options statement errors=1? : Sas programming
How do you add a number to a macro variable? : sas-macro
Which command is used to perform sorting in sas program?
What is the basic structure of the SAS base program?
What is SAS? What are the functions does it performs?
Hi, If anyone has base SAS certification dumps, please share.
What is the role of unrestrictive users? : sas-grid-administration
What are the scrubbing procedures in sas?
what is broad cast agent? : Sas-bi
What do you understand by the term Normal Distribution?
Can you execute a macro within a macro? Describe. : sas-macro
How can you limit the variables written to output dataset in data step?
What is the SAS data set?