1
0
mirror of https://github.com/sasjs/core.git synced 2025-12-10 22:14:35 +00:00

fix: formats

This commit is contained in:
munja
2022-01-07 13:14:40 +01:00
parent 77d1cdb753
commit cd33355418
6 changed files with 65 additions and 53 deletions

View File

@@ -181,7 +181,7 @@
data &tempds/view=&tempds;
attrib _all_ label='';
%do i=1 %to &numcols;
%if &&typelong&i=char %then %do;
%if &&typelong&i=char or &fmt=Y %then %do;
length &&name&i $32767;
format &&name&i $32767.;
%end;
@@ -194,7 +194,7 @@
%end;
format _numeric_ bart.;
%do i=1 %to &numcols;
%if &&typelong&i=char %then %do;
%if &&typelong&i=char or &fmt=Y %then %do;
&&name&i='"'!!trim(prxchange('s/"/\"/',-1,
prxchange('s/'!!'0A'x!!'/\n/',-1,
prxchange('s/'!!'0D'x!!'/\r/',-1,