<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Log Time Format? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673614#M202683</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;, I'm sorry, but I didn't follow you.&amp;nbsp; Which system option are you pointing me to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jul 2020 04:06:41 GMT</pubDate>
    <dc:creator>jimbarbour</dc:creator>
    <dc:date>2020-07-31T04:06:41Z</dc:date>
    <item>
      <title>Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673596#M202672</link>
      <description>&lt;P&gt;I have what I think may be a rather elementary question, but I can't find an answer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I format the time displayed at the top of the page in my SAS log?&amp;nbsp; On one of my servers it's in 24 hour format ("military time") and on another in 12 hour format (AM/PM).&amp;nbsp; I know about the DATE and DTRESET options, but I'm not aware of an option that controls the format of the time printed at the top of the page.&amp;nbsp; I'm thinking that there must be such a thing because my two servers differ.&amp;nbsp; Note:&amp;nbsp; One of the servers is running Windows Server 2016 and the other is RHEL (Linux).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example of what I'd like to change &lt;STRONG&gt;from&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;Thursday, July 30, 2020 07:16:30 PM&lt;/PRE&gt;
&lt;P&gt;Example of what I'd like change &lt;STRONG&gt;to&lt;/STRONG&gt;:&lt;/P&gt;
&lt;PRE&gt;18:43 Thursday, July 30, 2020&lt;/PRE&gt;
&lt;P&gt;I suspect these may be controlled by the LOCALE settings, but I've not been able to confirm my suspicions or find out how to change to what I prefer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you in advance,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 00:33:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673596#M202672</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-07-31T00:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673598#M202673</link>
      <description>&lt;P&gt;Check next sas system option&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=hostwin&amp;amp;docsetTarget=p16v72tro1likwn10wb0qwcnacwm.htm&amp;amp;locale=en" target="_self"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=hostwin&amp;amp;docsetTarget=p16v72tro1likwn10wb0qwcnacwm.htm&amp;amp;locale=en&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 01:06:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673598#M202673</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-07-31T01:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673613#M202682</link>
      <description>&lt;P&gt;I think it is the&amp;nbsp;STIMEFMT system option is what you are after:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=hostwin&amp;amp;docsetTarget=n1qpvan2y4ke45n1lrgixiti2ub5.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=hostwin&amp;amp;docsetTarget=n1qpvan2y4ke45n1lrgixiti2ub5.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 03:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673613#M202682</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-31T03:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673614#M202683</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;, I'm sorry, but I didn't follow you.&amp;nbsp; Which system option are you pointing me to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 04:06:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673614#M202683</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-07-31T04:06:41Z</dc:date>
    </item>
    <item>
      <title>Re: Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673615#M202684</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;, I thought of that too, but unfortunately not.&amp;nbsp; STIMEFMT controls the format of the contents of STIMER/FULLSTIMER.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example notice how the timer format changes as I use different STIMEFMT options and settings in the below -- but notice that the format of the date and time at the top of each page changes not at all.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;PRE&gt;1 The SAS System                                                                                23:05 Thursday, July 30, 2020

1          %_eg_hidenotesandsource;
5          %_eg_hidenotesandsource;
28         
29         *OPTION	STIMEFMT=(YYMMDDD10. HMS TOD KB MEMFULL TSFULL NC TS FMT OPT);
30         OPTION	STIMEFMT=(YYMMDDD10. HMS TOD KB MEMFULL TSFULL NC TS);
31         DATA	_NULL_;
32         RUN;

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           2020-07-30 23:05:01 
      

33         
34         *OPTION	STIMEFMT=(NLDATM2. HMS TIMEAMPM KB MEMFULL TSFULL NC);
35         OPTION	STIMEFMT=(NLDATM2. HMS TOD KB MEMFULL TSFULL TS NC);
36         DATA	_NULL_;
37         RUN;

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           07/30/2020 23:05:01
      

38         
39         *OPTION	STIMEFMT=(NLDATMAP TOD KB MEMFULL TSFULL NC TS FMT OPT);
40         OPTION	STIMEFMT=(NLDATMAP HMS TIMEAMPM KB MEMFULL TSFULL NC TS);
41         DATA	_NULL_;
42         RUN;

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 30, 2020 11:05:01 PM
      

43         
44         
45         
2 The SAS System                                                                                23:05 Thursday, July 30, 2020&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Jul 2020 04:09:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673615#M202684</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-07-31T04:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673617#M202686</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/88384"&gt;@Shmuel&lt;/a&gt;, I'm sorry, but I didn't follow you.&amp;nbsp; Which system option are you pointing me to?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;The link explains the AWSTITLE&lt;SPAN&gt;&amp;nbsp;system option, which enables to "&lt;STRONG&gt;Replaces the default text in the main SAS title bar.&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;On a 2nd thought, I am not sure it changes the LOG title.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Anyhow, it should be, if any, a system option used at configuration or sas invoking.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you compare the configuration files of the two servers ?&lt;/SPAN&gt;&lt;/P&gt;
&lt;H1 id="p16v72tro1likwn10wb0qwcnacwm" class="xisDoc-title"&gt;&amp;nbsp;&lt;/H1&gt;</description>
      <pubDate>Fri, 31 Jul 2020 04:49:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673617#M202686</guid>
      <dc:creator>Shmuel</dc:creator>
      <dc:date>2020-07-31T04:49:11Z</dc:date>
    </item>
    <item>
      <title>Re: Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673620#M202688</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/37107"&gt;@jimbarbour&lt;/a&gt;&amp;nbsp; - I checked the full list of options for controlling LOG appearance here and I don't see any other options that might be worth trying:&amp;nbsp;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lrcon&amp;amp;docsetTarget=n03qoiyzzrrl4in1pfvbqgj7jan8.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=lrcon&amp;amp;docsetTarget=n03qoiyzzrrl4in1pfvbqgj7jan8.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe time to ask Tech Support?&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 05:00:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673620#M202688</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2020-07-31T05:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Log Time Format?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673624#M202691</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;, thank you for checking.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Actually, being to stubborn to take "no" for an answer, I kept searching the documentation, and:&amp;nbsp; It's a combination of the LOCALE and DFLANG options that seems to work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wrote a little macro to demonstrate this (below).&amp;nbsp; What it does is try various settings of the LOCALE option and then sets the DFLANG to LOCALE.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;&amp;amp;Null	%MACRO	Try_Locale(Locale);
	OPTION	LOCALE	=	&amp;amp;Locale;
	OPTION	DFLANG	=	LOCALE;

	%PUT	&amp;amp;Nte2;

	DATA	_NULL_;
	RUN;

	%PUT	&amp;amp;Nte2;
	%PUT	&amp;amp;Nte2;
%MEND	Try_Locale;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I execute the macro, supplying various settings of LOCALE, we can see the date and time formats change at the top of the page in the SAS log.&amp;nbsp; As it happens, when LOCALE=EN_GB, that's precisely what I wanted.&amp;nbsp; One has to be a little careful here.&amp;nbsp; The DFLANG could change the DATESTYLE.&amp;nbsp; Date style is MDY in the USA, but it is DMY in much of the rest of the world.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;29         %Try_Locale(en_AU);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

2 The SAS System                 Friday, 31 July 2020 12:31:16 AM

     
     
30         
31         %Try_Locale(EN_BE);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

3 The SAS System             Friday 31 July 2020 00 h 31 min 16 s

     
     
32         
33         %Try_Locale(EN_BW);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

4 The SAS System                  Friday 31 July 2020 12:31:16 AM

     
     
34         
35         %Try_Locale(EN_CA);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

5 The SAS System                Friday, 31 July, 2020 12:31:16 AM

     
     
36         
37         %Try_Locale(EN_CB);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

6 The SAS System                Friday, July 31, 2020 12:31:16 AM

     
     
38         
39         %Try_Locale(EN_GB);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

7 The SAS System                    Friday, 31 July 2020 00:31:16

     
     
40         
41         %Try_Locale(EN_HK);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

8 The SAS System                Friday, 31 July, 2020 12:31:16 AM

     
     
42         
43         %Try_Locale(EN_IE);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

9 The SAS System                Friday 31 July 2020 12:31:16 a.m.

     
     
44         
45         %Try_Locale(EN_IN);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

10 The SAS System                 Friday 31 July 2020 12:31:16 AM

     
     
46         
47         %Try_Locale(EN_JM);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

11 The SAS System               Friday, July 31, 2020 12:31:16 AM

     
     
48         
49         %Try_Locale(EN_MT);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

12 The SAS System                Friday, 31 July 2020 12:31:16 AM

     
     
50         
51         %Try_Locale(EN_NZ);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

13 The SAS System                Friday, 31 July 2020 12:31:16 AM

     
     
52         
53         %Try_Locale(EN_PH);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

14 The SAS System               Friday, July 31, 2020 12:31:16 AM

     
     
54         
55         %Try_Locale(EN_SG);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

15 The SAS System               Friday, 31 July, 2020 12:31:16 AM

     
     
56         
57         %Try_Locale(EN_US);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

16 The SAS System               Friday, July 31, 2020 12:31:16 AM

     
     
58         
59         %Try_Locale(EN_ZA);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

17 The SAS System                 Friday 31 July 2020 12:31:16 AM

     
     
60         
61         %Try_Locale(EN_ZW);
     

NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.01 seconds
      Timestamp           July 31, 2020 12:31:16 AM
      

18 The SAS System                 Friday 31 July 2020 12:31:16 AM&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As I suspected, it's the LOCALE that controls the date and time formats at the top of the page in the SAS log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jul 2020 05:50:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Log-Time-Format/m-p/673624#M202691</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2020-07-31T05:50:02Z</dc:date>
    </item>
  </channel>
</rss>

