Date: Thu, 15 Feb 2007 13:25:32 -0800
Reply-To: "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Schwarz, Barry A" <barry.a.schwarz@BOEING.COM>
Subject: Re: Date Types MMYYN4
Content-Type: text/plain; charset="us-ascii"
MMYYxw is a format. You need an informat (which doesn't exist).
Read the data as char and convert it using INPUT, SUBSTR, and the YYMMNw
From: Dianne Rhodes [mailto:snip]
Sent: Thursday, February 15, 2007 1:10 PM
Subject: Date Types MMYYN4
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.