| Date: | Tue, 2 Apr 1996 09:30:00 -0500 |
| Reply-To: | Robert Schechter <robert_schechter@MERCK.COM> |
| Sender: | "SAS(r) Discussion" <SAS-L@UGA.CC.UGA.EDU> |
| From: | Robert Schechter <robert_schechter@MERCK.COM> |
| Subject: | Re: date format |
|
John,
Try this:
19 data _null_;
20 input date yymmdd8.;
21 put date= yymmdd10.;
22 list;
23 cards;
DATE=1996-04-02
RULE:----+----1----+----2----+----3----+----4----+----5----+----6----+----7-
---+----8----+----9--
24 19960402
NOTE: The DATA statement used 0.71 seconds.
25 run;
Best of luck,
Bob
----------
From: John F. Walsh
To: schechte; Multiple recipients of list SAS-L
Subject: date format
Date: Tuesday, April 02, 1996 8:54AM
I would appreciate help on how to format YYYYMMDD in a date format. I
think it was discussed earlier but I can not locate it.
thanks
John Walsh
internet: aowalsh@murray.fordham.edu
|