<?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: DT- formats in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29898#M7043</link>
    <description>Flip&lt;BR /&gt;
nope.&lt;BR /&gt;
as declared in the alphabetical list of formats [pre]EURDFDTw.d Format EURDFDT w.d &lt;BR /&gt;
Writes international datetime values in the form ddmmmyy:hh:mm:ss.ss or ddmmmyyyy hh:mm:ss.ss.  [/pre] subject to the LOCALE= value (and probably not just european)&lt;BR /&gt;
I was seeking a format that took a datetime value and returned the datepart in more formats than the limited set offered by the DT-formats group. That group are helpful as all databases, that I have come across, return dates to SAS as datetime values and I don't need to provide screen space for a timepart full of zeroes. &lt;BR /&gt;
In particular I like the ddmmyy format, so wanted a DTddmmyy. It is easy to create but pointless to build the administrative support required among a group of users sharing the data on which they work. So I was asking if SAS might be planning a hotfix providing more dt-type date formats. Recent expansion of formats does seem to be heading in different directions.&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
    <pubDate>Mon, 14 Dec 2009 16:40:20 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2009-12-14T16:40:20Z</dc:date>
    <item>
      <title>DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29896#M7041</link>
      <description>A convenient collection of formats provided by SAS are &lt;BR /&gt;
dtDate&lt;BR /&gt;
dtMonYY&lt;BR /&gt;
dtYYqC&lt;BR /&gt;
dtWkDatX&lt;BR /&gt;
These correspond to formats Date, MonYY, YYqC and WeekDatX, but work on DateTime values rather than Date values.&lt;BR /&gt;
These formats are very convenient for displaying dates provided through SAS/Access routines ~ because typically these data access modules create dateTime values ~ and these formatsneed no datepart() conversion.&lt;BR /&gt;
Here in UK, date layout standards would like a format DTDDMMYY for dates loaded through SAS/Access, but the format does not exist..... until I create it with [pre]proc format ;&lt;BR /&gt;
    picture dtddmmyy &lt;BR /&gt;
        '1jan1582:0:0'dt - '31DEC9999:23:59:59.99'dt &lt;BR /&gt;
                   = '%0d/%0m/%0Y'(DATATYPE=DATETIME)&lt;BR /&gt;
                  ;&lt;BR /&gt;
run ;[/pre]Of course, this format must be able to be found through the FMTSEARCH paths.  &lt;BR /&gt;
 &lt;BR /&gt;
Before I start building user infrastructure to standardise support for this simple National Language standard, is there any prospect of the list of DT-formats being expanded to support the wider range of date display styles expected of, and built-in to SAS?&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Mon, 14 Dec 2009 11:25:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29896#M7041</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-14T11:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29897#M7042</link>
      <description>Isn't that what the EURDFDTw.d Format does?</description>
      <pubDate>Mon, 14 Dec 2009 13:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29897#M7042</guid>
      <dc:creator>Flip</dc:creator>
      <dc:date>2009-12-14T13:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29898#M7043</link>
      <description>Flip&lt;BR /&gt;
nope.&lt;BR /&gt;
as declared in the alphabetical list of formats [pre]EURDFDTw.d Format EURDFDT w.d &lt;BR /&gt;
Writes international datetime values in the form ddmmmyy:hh:mm:ss.ss or ddmmmyyyy hh:mm:ss.ss.  [/pre] subject to the LOCALE= value (and probably not just european)&lt;BR /&gt;
I was seeking a format that took a datetime value and returned the datepart in more formats than the limited set offered by the DT-formats group. That group are helpful as all databases, that I have come across, return dates to SAS as datetime values and I don't need to provide screen space for a timepart full of zeroes. &lt;BR /&gt;
In particular I like the ddmmyy format, so wanted a DTddmmyy. It is easy to create but pointless to build the administrative support required among a group of users sharing the data on which they work. So I was asking if SAS might be planning a hotfix providing more dt-type date formats. Recent expansion of formats does seem to be heading in different directions.&lt;BR /&gt;
 &lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Mon, 14 Dec 2009 16:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29898#M7043</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-14T16:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29899#M7044</link>
      <description>You specify a length attribute "w" so that only the date-portion is exposed.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
1    data _null_;&lt;BR /&gt;
2    format my_date EURDFDT9.;&lt;BR /&gt;
3    my_date = datetime();&lt;BR /&gt;
4    putlog _all_;&lt;BR /&gt;
5    run;&lt;BR /&gt;
&lt;BR /&gt;
my_date=14DEC2009 _ERROR_=0 _N_=1&lt;BR /&gt;
NOTE: DATA statement used (Total process time):&lt;BR /&gt;
      real time           0.06 seconds&lt;BR /&gt;
      cpu time            0.01 seconds</description>
      <pubDate>Mon, 14 Dec 2009 16:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29899#M7044</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-14T16:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29900#M7045</link>
      <description>fine, but I wanted ddmmyy, for which I found no format tolerating datetime values.&lt;BR /&gt;
Is there one I missed?&lt;BR /&gt;
 &lt;BR /&gt;
PeterC</description>
      <pubDate>Mon, 14 Dec 2009 16:54:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29900#M7045</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-14T16:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29901#M7046</link>
      <description>My apology for overlooking this particular detail.  You will want to contact SAS tech support directly with your inquiry request for a new "datetime" format, however in the meantime you will likely need to move forward to create your own permanent SAS format for this purpose (make it fairly unique named for easy identification).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 14 Dec 2009 17:11:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29901#M7046</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-14T17:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29902#M7047</link>
      <description>scott,&lt;BR /&gt;
 the user-defined format works.  &lt;BR /&gt;
did you think my suggested name DTddmmyy unsuitable ?&lt;BR /&gt;
I'm more concerned about providing the shared foundation (in the absence of a bi server).</description>
      <pubDate>Mon, 14 Dec 2009 18:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29902#M7047</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2009-12-14T18:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: DT- formats</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29903#M7048</link>
      <description>Definitely not unreasonable - I have supported UK-based companies who use SAS and they typically display/print only date and sometimes the time-portion but as separate columns, rather than combined.&lt;BR /&gt;
&lt;BR /&gt;
Of course your other choice is to concatenate the two components at display time, creating a character-type variable in the desired format.&lt;BR /&gt;
&lt;BR /&gt;
Concerning your site's SAS shared foundation - I take that to mean a SAS enterprise environment master CATALOG OBJECT library,where you store various site-unique SAS-related items, such as FORMATs (either display or look-up), possibly INFORMATs, ODS templates, and other tables.  Suggest you set this up centrally and provide either a user-invoked macro to concatenate your local OBJECT using a LIBNAME &lt;LIBREF&gt;.  Look at using the GETOPTION function to retrieve the current FMTSEARCH and conditionally replace it, if necessary.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;/LIBREF&gt;</description>
      <pubDate>Mon, 14 Dec 2009 18:22:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DT-formats/m-p/29903#M7048</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-14T18:22:33Z</dc:date>
    </item>
  </channel>
</rss>

