1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-15 16:14:36 +00:00

fix: substr issue in mp_ds2inserts. Closes #68

This commit is contained in:
Allan Bowe
2021-08-24 20:51:29 +03:00
parent 9f60d827b6
commit f468f60ae1
2 changed files with 4 additions and 2 deletions

View File

@@ -152,7 +152,8 @@ data _null_;
%end;
%else %if &flavour=PGSQL %then %do;
if missing(&var) then put 'NULL';
%if &applydttm=YES and "%substr(&vfmt,1,8)"="DATETIME" %then %do;
%if &applydttm=YES and "%substr(&vfmt.xxxxxxxx,1,8)"="DATETIME"
%then %do;
else put "TIMESTAMP '" &var E8601DT25.6 "'";
%end;
%else %do;