. 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

what is data access? : Sas-di

600


How to test the debugging in sas?

606


please can you tell me that in companies sas work are doing by through sas coding or sas wizard ??

1661


What is a pdv and what are its functions?

598


Which are the statements whose placement in the data step is critical?

758






how sas deals with business intelligence? : Sas-bi

581


Are you involved in writing the inferential analysis plan? Tables specfications?

2107


What are common programming errors committed in sas

667


If you could design your ideal job, what would it look like?

2368


How many data types are there in SAS?

630


how does sas handle missing values in assignment statements? : Sas programming

565


what is broad cast agent? : Sas-bi

593


Why and when do you use proc sql?

756


Hello Friends, am new to this forum and am not good at sas progarmming. please can any one of you send me couple of sample large sample SAS Jobs which can you use 200 MB of data and other sas job upto 25GB of data. am doing a performance testing on our legacy systems and new upgraded system. I would really appreciate if you can do me this favor Thank you Priya

1343


What are pdv and it functions?

596