Date: Fri, 25 Jan 2002 12:03:04 -0800
Reply-To: "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Terjeson, Mark" <TerjeMW@DSHS.WA.GOV>
Subject: Re: INTNX usage
Content-Type: text/plain; charset=iso-8859-1
Hi Rick,
You're numbers are working correctly. i.e. the minus
sign on the N variable for -3 which will back up 3 months.
You are just looking at the numeric internal
date number in the numeric variable BACK_3MO.
If you want to see the re-deisplay of the formatted
value, you can add
format BACK_3MO date9.;
to your datastep which when this numeric date
variable displays it will be more readable.
Hope this is helpful,
Mark Terjeson
Washington State Department of Social and Health Services
Division of Research and Data Analysis (RDA)
mailto:terjemw@dshs.wa.gov
-----Original Message-----
From: Rick Bargar [mailto:Rick_D_Bargar@CHCMAIL.COM]
Sent: Friday, January 25, 2002 11:13 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: INTNX usage
Okay, color me confused (must be Friday)! What am I doing wrong here or how
do
I read my result?
D = '25JAN2002'D;
N = 3;
BACK_3MO = INTNX('MONTH',D,-N);
PUT BACK_3MO=;
and my run gives me this:
BACK_3MO=15249
|