1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-15 04:20:05 +00:00

fix: rename to mf_fmtdttm()

This commit is contained in:
Allan Bowe
2022-05-07 17:49:06 +00:00
parent bf7459bd2d
commit 1b013fbf1c
2 changed files with 7 additions and 6 deletions

View File

@@ -1,20 +1,21 @@
/** /**
@file @file
@brief Returns E8601DT26.6 if compatible else DATETIME19.3 @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 (https://datacontroller.io) deployments, the E8601DT26.6 datetime format has
the widest support when it comes to pass-through SQL queries. 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). 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.
<h4> Related Macros </h4> <h4> Related Macros </h4>
@li mf_dttm.test.sas @li mf_fmtdttm.test.sas
@author Allan Bowe @author Allan Bowe
**/ **/
%macro mf_dttm( %macro mf_fmtdttm(
)/*/STORE SOURCE*/; )/*/STORE SOURCE*/;
%if "&sysver"="9.2" or "&sysver"="9.3" %if "&sysver"="9.2" or "&sysver"="9.3"
@@ -24,6 +25,6 @@
%then %do;DATETIME19.3%end; %then %do;DATETIME19.3%end;
%else %do;E8601DT26.6%end; %else %do;E8601DT26.6%end;
%mend mf_dttm; %mend mf_fmtdttm;

View File

@@ -1,6 +1,6 @@
/** /**
@file @file
@brief Testing mf_dttm macro @brief Testing mf_fmtdttm macro
<h4> SAS Macros </h4> <h4> SAS Macros </h4>
@li mf_dttm.sas @li mf_dttm.sas
@@ -12,7 +12,7 @@
%global test1; %global test1;
%mp_assertscope(SNAPSHOT) %mp_assertscope(SNAPSHOT)
%let test1=%mf_dttm(); %let test1=%mf_fmtdttm();
%mp_assertscope(COMPARE,ignorelist=test1) %mp_assertscope(COMPARE,ignorelist=test1)
%mp_assert( %mp_assert(