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
Difference between SAS STATA & SPSS?
Enlist the syntax rules followed in sas statements.
how to do user inputs and command line arguments in sas?
how would you create multiple observations from a single observation? : Sas programming
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
What would you change about your job?
How would you code a merge that will write the matches of both to one data set, the non-matches from the left-most data?
How to sort in descending order?
What is the difference between the proc sql and data step?
what is sas application server, database server, sas olap server and sas metadata server? : Sas-di
Name validation tools used in SAS
describe how to adjust the performance of data integrator? : Sas-di
What are the data types does SAS contain?
Differentiate input and infile.
What is a method for assigning first.VAR and last.VAR to the BY group variable on unsorted data?