LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (January 2002, week 4)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: "Rick_D_Bargar@CHCMAIL.COM" <Rick_D_Bargar@CHCMAIL.COM>
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


Back to: Top of message | Previous page | Main SAS-L page