Prev: Titles and footnotes on every page using proc report and ods rtf
Next: Informat "05.02.2010 17:10"
From: Joe Matise on 5 Feb 2010 11:40 Try ANYDTDTM. data _null_; informat dt ANYDTDTM.; input @1 dt ANYDTDTM16.; format dt DATETIME.; put dt=; datalines; 05.02.2010 17:10 ;;;; run; This doesn't work properly on my machine as my PC interprets it as MDY, not DMY, but I believe that is an NLS setting and may work on your machine. I also don't know what informat it's actually using - if it's using MDYAMPM that might not work for DMY under any circumstance, but if it's using some variant of NLDATM it might work. -Joe On Fri, Feb 5, 2010 at 10:30 AM, <pohl(a)axis.de> wrote: > day-month-year-hour-minute > > HRH > > THX > > Stefan > > > ------------------------------ > > *Von:* Joe Matise [mailto:snoopy369(a)gmail.com] > *Gesendet:* Freitag, 5. Februar 2010 17:28 > *An:* Pohl, Dr. Stefan > *Cc:* SAS-L(a)listserv.uga.edu > *Betreff:* Re: Informat "05.02.2010 17:10" > > > > Month-day-year or day-month-year? > > -Joe > > On Fri, Feb 5, 2010 at 10:11 AM, Dr. Stefan Pohl <pohl(a)axis.de> wrote: > > Dear list, > > > > Which datetime informat do I have to use in this case: > > > > 05.02.2010 17:10 > > > > Best regards > > > > Stefan > > >
From: "Data _null_;" on 5 Feb 2010 11:51 I believe the option you are referring to is datestyle. But it doesn't seem to help. I think the ANY informats should be renamed MAYBE or SOME. 7913 options DATESTYLE=DMY; 7914 data _null_; 7915 input dt & ANYDTDTM16.; 7916 put dt=datetime.; 7917 list; 7918 datalines; dt= RULE: ----+----1----+----2- 7919 05.02.2010 17:10 On 2/5/10, Joe Matise <snoopy369(a)gmail.com> wrote: > Try ANYDTDTM. > > data _null_; > informat dt ANYDTDTM.; > input @1 dt ANYDTDTM16.; > format dt DATETIME.; > put dt=; > datalines; > 05.02.2010 17:10 > ;;;; > run; > > This doesn't work properly on my machine as my PC interprets it as MDY, not > DMY, but I believe that is an NLS setting and may work on your machine. I > also don't know what informat it's actually using - if it's using MDYAMPM > that might not work for DMY under any circumstance, but if it's using some > variant of NLDATM it might work. > > -Joe > > On Fri, Feb 5, 2010 at 10:30 AM, <pohl(a)axis.de> wrote: > > > day-month-year-hour-minute > > > > HRH > > > > THX > > > > Stefan > > > > > > ------------------------------ > > > > *Von:* Joe Matise [mailto:snoopy369(a)gmail.com] > > *Gesendet:* Freitag, 5. Februar 2010 17:28 > > *An:* Pohl, Dr. Stefan > > *Cc:* SAS-L(a)listserv.uga.edu > > *Betreff:* Re: Informat "05.02.2010 17:10" > > > > > > > > Month-day-year or day-month-year? > > > > -Joe > > > > On Fri, Feb 5, 2010 at 10:11 AM, Dr. Stefan Pohl <pohl(a)axis.de> wrote: > > > > Dear list, > > > > > > > > Which datetime informat do I have to use in this case: > > > > > > > > 05.02.2010 17:10 > > > > > > > > Best regards > > > > > > > > Stefan > > > > > > >
From: Joe Matise on 5 Feb 2010 11:28 Month-day-year or day-month-year? -Joe On Fri, Feb 5, 2010 at 10:11 AM, Dr. Stefan Pohl <pohl(a)axis.de> wrote: > Dear list, > > > > Which datetime informat do I have to use in this case: > > > > 05.02.2010 17:10 > > > > Best regards > > > > Stefan >
From: Joe Matise on 5 Feb 2010 11:53 Copy the list - way more intelligent people than myself on the whole list := ) I'd guess you're not using an NLS version of SAS, or a new enough version. What version are you using, and specifically what language configuration, both of SAS and your operating system? There are different language configurations (NLS), so you might be using a version not intended for UTF-= 8 character set or whatnot. Or it just doesn't work ... not my area of expertise certainly. -Joe On Fri, Feb 5, 2010 at 10:49 AM, <pohl(a)axis.de> wrote: > Works fine. > > > > But another problem: > > > > Her is my code snip: LAST_MODIFIED =3D input( finfo( fid , 'Ge=E4ndert am= ') , > ANYDTDTM16.); > > > > I have problems with the German =93=E4=94. How can I read in correctly 'G= e=E4ndert > am'? > > > > THX > > > > Stefan > > > ------------------------------ > > *Von:* Joe Matise [mailto:snoopy369(a)gmail.com] > *Gesendet:* Freitag, 5. Februar 2010 17:41 > *An:* Pohl, Dr. Stefan; SAS-L(a)LISTSERV.UGA.EDU > > *Betreff:* Re: Informat "05.02.2010 17:10" > > > > Try ANYDTDTM. > > data _null_; > informat dt ANYDTDTM.; > input @1 dt ANYDTDTM16.; > format dt DATETIME.; > put dt=3D; > datalines; > 05.02.2010 17:10 > ;;;; > run; > > This doesn't work properly on my machine as my PC interprets it as MDY, n= ot > DMY, but I believe that is an NLS setting and may work on your machine. = I > also don't know what informat it's actually using - if it's using MDYAMPM > that might not work for DMY under any circumstance, but if it's using som= e > variant of NLDATM it might work. > > -Joe > > On Fri, Feb 5, 2010 at 10:30 AM, <pohl(a)axis.de> wrote: > > day-month-year-hour-minute > > HRH > > THX > > Stefan > > > ------------------------------ > > *Von:* Joe Matise [mailto:snoopy369(a)gmail.com] > *Gesendet:* Freitag, 5. Februar 2010 17:28 > *An:* Pohl, Dr. Stefan > *Cc:* SAS-L(a)listserv.uga.edu > *Betreff:* Re: Informat "05.02.2010 17:10" > > > > Month-day-year or day-month-year? > > -Joe > > On Fri, Feb 5, 2010 at 10:11 AM, Dr. Stefan Pohl <pohl(a)axis.de> wrote: > > Dear list, > > > > Which datetime informat do I have to use in this case: > > > > 05.02.2010 17:10 > > > > Best regards > > > > Stefan > > > > >
From: Joe Matise on 5 Feb 2010 11:55 I'm guessing NLDATM is separate from datestyle (which I was thinking of, yes), then, as the OP replied offlist that it worked. -Joe On Fri, Feb 5, 2010 at 10:51 AM, Data _null_; <iebupdte(a)gmail.com> wrote: > I believe the option you are referring to is datestyle. But it > doesn't seem to help. I think the ANY informats should be renamed > MAYBE or SOME. > > 7913 options DATESTYLE=DMY; > 7914 data _null_; > 7915 input dt & ANYDTDTM16.; > 7916 put dt=datetime.; > 7917 list; > 7918 datalines; > > dt= > RULE: ----+----1----+----2- > 7919 05.02.2010 17:10 > > > > > On 2/5/10, Joe Matise <snoopy369(a)gmail.com> wrote: > > Try ANYDTDTM. > > > > data _null_; > > informat dt ANYDTDTM.; > > input @1 dt ANYDTDTM16.; > > format dt DATETIME.; > > put dt=; > > datalines; > > 05.02.2010 17:10 > > ;;;; > > run; > > > > This doesn't work properly on my machine as my PC interprets it as MDY, > not > > DMY, but I believe that is an NLS setting and may work on your machine. > I > > also don't know what informat it's actually using - if it's using MDYAMPM > > that might not work for DMY under any circumstance, but if it's using > some > > variant of NLDATM it might work. > > > > -Joe > > > > On Fri, Feb 5, 2010 at 10:30 AM, <pohl(a)axis.de> wrote: > > > > > day-month-year-hour-minute > > > > > > HRH > > > > > > THX > > > > > > Stefan > > > > > > > > > ------------------------------ > > > > > > *Von:* Joe Matise [mailto:snoopy369(a)gmail.com] > > > *Gesendet:* Freitag, 5. Februar 2010 17:28 > > > *An:* Pohl, Dr. Stefan > > > *Cc:* SAS-L(a)listserv.uga.edu > > > *Betreff:* Re: Informat "05.02.2010 17:10" > > > > > > > > > > > > Month-day-year or day-month-year? > > > > > > -Joe > > > > > > On Fri, Feb 5, 2010 at 10:11 AM, Dr. Stefan Pohl <pohl(a)axis.de> wrote: > > > > > > Dear list, > > > > > > > > > > > > Which datetime informat do I have to use in this case: > > > > > > > > > > > > 05.02.2010 17:10 > > > > > > > > > > > > Best regards > > > > > > > > > > > > Stefan > > > > > > > > > > > >
|
Next
|
Last
Pages: 1 2 Prev: Titles and footnotes on every page using proc report and ods rtf Next: Informat "05.02.2010 17:10" |