. Which date advances a date, time or date/time value by a
given interval?

Answer Posted / pambrose

Here is the detailed usage of intnx function

date1=intnx('month','01jan95'd,5,'beginning');
put date1 / date1 date7.;

date2=intnx('month','01jan95'd,5,'middle');
put date2 / date2 date7.;

date3=intnx('month','01jan95'd,5,'end');
put date3 / date3 date7.;

date4=intnx('month','01jan95'd,5,'sameday');
put date4 / date4 date7.;

date5=intnx('month','15mar2000'd,5,'same');
put date5 / date5 date9.;

interval='month';
date='1sep2001'd;
align='m';
date4=intnx(interval,date,2,align)
;put date4 / date4 date7.;

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of proc print and proc contents?

635


How would you identify a macro variable?

741


explain about various caches available in data integrator? : Sas-di

675


How are numeric and character missing values represented internally?

1253


In sas, what are the areas that you are most interested in? : sas-grid-administration

725






Do you need to compute new variables? If so,should you do this before you execute the report-writing procedure?

1556


for what purpose would you use the retain statement? : Sas programming

687


What are the different versions of sas that you have used until now? : sas-grid-administration

862


what is program data vector? : Sas-administrator

709


where are dashboard components are created and maintained? : Sas-bi

657


What is the difference between the proc sql and data step?

751


Approximately what date is represented by the SAS date value of 730?

852


Describe the function and untility of the most difficult SAS macro that you have written.

1813


What is your favorite all time computer book? Why?

2135


Mention common programming errors committed in sas ?

721