Date: Tue, 14 Mar 2000 13:33:18 -0500
Reply-To: Paul Dorfman <paul_dorfman@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Paul Dorfman <paul_dorfman@HOTMAIL.COM>
Subject: Re: convert the date format from mmddyy to ddmmyy
Anne,
You realize, of course, that I chose the names "ddmmyy" and "mmddyy" for the
sake of illustration rather that an invitation to widely use them. However,
since SAS (_not_ the Macro language) is a free from language _without_
reserved words, the risk is vanishingly minimal. See Dr. John post treating
the subject in depth. I would definitely stay away from calling arrays using
function names and such, though.
Kind regards,
========================
Paul M. Dorfman
Jacksonville, Fl
========================
On Tue, 14 Mar 2000 11:21:19 -0500,
Anne.Marie.Smith@ASTRAPHARMACEUTICALS.COM wrote:
>Paul,
>It is not a great idea to use "ddmmyy" as a variable name either,
>its a reserved word, the SAS proper name of a format. The practice of
using
>reserved words
>as variable names creates all kinds of unnecessary duplicate reference
problems
>for the
>SAS language compiler :-) which may give you wildly erronious results.
>
>Kind regards,
>Anne
>-----------------------------------------------------
>
>
>To: SAS-L@LISTSERV.UGA.EDU
>cc:
>From: Gehard Hellriegel <detecsm_hellriegelg@WESTLB.DE>
>Date: 03/14/2000 08:04 AM GMT
>Subject: Re: convert the date format from mmddyy to ddmmyy
>
>Message
>___________________________________________________________________________
_____
>
>
>
>
>I'd never convert it at all! Leave it as it is (days from 1th of jan 1960)
and
>use different formats to list it where needed! With the PUT function you
convert
>it to a string and you cannot use it as date any more!
>
>
>
>
>
>
>
>Paul Dorfman <paul_dorfman@HOTMAIL.COM> on 13.03.2000 18:32:20
>
>Bitte antworten an sashole@mediaone.net
>
>An: SAS-L@LISTSERV.UGA.EDU
>Kopie: (Blindkopie: DeTeCSM HellriegelG/D/ExternalStaff/WLB)
>Thema: Re: convert the date format from mmddyy to ddmmyy
>
>
>
>Panos,
>
>ddmmyy = put(input(mmddyy,mmddyy6.),ddmmyy6.);
>
>Kind regards,
>====================
>Paul M. Dorfman
>Jacksonville, Fl
>====================
>
>>From: Panos PAPANIKOLAOU <PapanikolaouP@CARDIFF.AC.UK>
>>Reply-To: Panos PAPANIKOLAOU <PapanikolaouP@CARDIFF.AC.UK>
>>To: SAS-L@LISTSERV.UGA.EDU
>>Subject: convert the date format from mmddyy to ddmmyy
>>Date: Mon, 13 Mar 2000 17:21:15 GMT0BST
>>
>>Dear All,
>>
>>i have two date-related variables such as admission from and
>>discharge to the hospital. Both are in the american format. That is,
>>they are both read as MMDDYY. I am wondering how i would convert them
>>to the British format such as DDMMYY. Please, note that i tried
>>unsuccessfully the mdy(mm,dd.yy) format as mdy(dd,mm,yy) but it did
>>not work.
>>
>>I would be most grateful if you would send me any suggestions
>>particularly if any SAS statements would be offered.
>>
>>Thank you very much indeed for taking the time to consider my
>>request. I look forward to hearing from you.
>>
>>Yours sincerely
>>Panos
>>
>>Panos Papanikolaou
>>*********************
>>Research Fellow
>>Nursing, Health and Social Care Research Centre
>>SONWS
>>UWCM
>>Heath Park
>>Cardiff
>>CF14 4XN
>>Great Britain
>>E-mail: papanikolaoup@cf.ac.uk
>>Direct line: +44 (0)29 2074 2197
>>Fax: +44 (0)29 2074 5521
>
>______________________________________________________
>Get Your Private, Free Email at http://www.hotmail.com
>
>
>
>
>
> Mit freundlichen Gruessen
>
>
> DeTeCSM, Gerhard Hellriegel
>
> WestLB
> Abteilung: 001-80622
> Aderstr. 22
> D - 40217 Duesseldorf
> Tel.: +49211 826 6173
> Fax: +49211 826 5393
|