diff --git a/base/mf_dttm.sas b/base/mf_fmtdttm.sas similarity index 74% rename from base/mf_dttm.sas rename to base/mf_fmtdttm.sas index a577bba..477c0f3 100644 --- a/base/mf_dttm.sas +++ b/base/mf_fmtdttm.sas @@ -1,20 +1,21 @@ /** @file @brief Returns E8601DT26.6 if compatible else DATETIME19.3 - @details Per our experience in [Data Controller for SAS] + @details From our experience in [Data Controller for SAS] (https://datacontroller.io) deployments, the E8601DT26.6 datetime format has the widest support when it comes to pass-through SQL queries. However, it is not supported in WPS or early versions of SAS 9 (M3 and below). + This macro will therefore return the appropriate format based on the runtime.

Related Macros

- @li mf_dttm.test.sas + @li mf_fmtdttm.test.sas @author Allan Bowe **/ -%macro mf_dttm( +%macro mf_fmtdttm( )/*/STORE SOURCE*/; %if "&sysver"="9.2" or "&sysver"="9.3" @@ -24,6 +25,6 @@ %then %do;DATETIME19.3%end; %else %do;E8601DT26.6%end; -%mend mf_dttm; +%mend mf_fmtdttm; diff --git a/tests/crossplatform/mf_dttm.test.sas b/tests/crossplatform/mf_fmtdttm.test.sas similarity index 83% rename from tests/crossplatform/mf_dttm.test.sas rename to tests/crossplatform/mf_fmtdttm.test.sas index d1fbf7a..e73548c 100644 --- a/tests/crossplatform/mf_dttm.test.sas +++ b/tests/crossplatform/mf_fmtdttm.test.sas @@ -1,6 +1,6 @@ /** @file - @brief Testing mf_dttm macro + @brief Testing mf_fmtdttm macro

SAS Macros

@li mf_dttm.sas @@ -12,7 +12,7 @@ %global test1; %mp_assertscope(SNAPSHOT) -%let test1=%mf_dttm(); +%let test1=%mf_fmtdttm(); %mp_assertscope(COMPARE,ignorelist=test1) %mp_assert(