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
How do you define proc in sas? : sas-grid-administration
Name and describe few sas character functions that are used for data cleaning in brief.
explain the function of substr in sas? : Sas-administrator
What are the statements in proc sql?
Why double trailing @@ is used in input statement?
what are _numeric_ and _character_ and what do they do? : Sas programming
for whom is sas data integration studio designed? : Sas-di
What is Linear Regression?
Explain input and put function?
what is sas olap server? : Sas-di
What is the order of application for output data set options, input data set options and SAS statements?
What do you understand by the term Normal Distribution?
I need level 2 to 5 sas using companies in india
Explain the difference between nodup and nodupkey options?
In sas, what are the areas that you are most interested in? : sas-grid-administration