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 (February 2007, week 3)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 15 Feb 2007 16:25:54 -0500
Reply-To:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Subject:   Re: Date Types MMYYN4
In-Reply-To:   <200702152109.l1FKPF2Z018549@mailgw.cc.uga.edu>
Content-Type:   text/plain; charset=us-ascii

> From: Dianne Rhodes

> We have odd dates with 2 digit years. Sometimes they are in > the form of '0702' which I use YYMMn4. to convert to 200702 > using YYMMn6. > sometimes they are '0376' which should convert to 197603 using MMYYn4. > But SAS complains that there is no such informat. It's > documented in the SAS on-line doc, in Rick Aster's book, and > in Derek Morgan's book. What gives? SAS 9.1.3 Service pack > 4 on windows. > > MMYY4 = put(input(Index_base_date,MMYYN4.),MMYYN4.); > ------- > 48 ERROR > 48-59: The informat MMYYN was not found or could not be loaded.

end of day: you've been staring at the screen too long: online help: mmyyxw. format

the error message says the *-IN-*format was not found

try simplify: less is more, ... hopefully MMYY4 = put(Index_base_date,MMYYN4.);

Ron Fehd the macro maven CDC Atlanta GA USA RJF2 at cdc dot gov

If you always try to be logical, you probably won't ever have much sorrow, or much fun. -- Ashleigh Brilliant pot-shot #4438


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