mirror of
https://github.com/sasjs/core.git
synced 2026-01-03 15:40:05 +00:00
fix: pretty option always in proc json
This commit is contained in:
13
all.sas
13
all.sas
@@ -3080,7 +3080,9 @@ create table &outds (rename=(
|
||||
* PROCJSON (default)
|
||||
* DATASTEP
|
||||
|
||||
@param dbg= Typically used with an _debug (numeric) option
|
||||
@param dbg= DEPRECATED - was used to conditionally add PRETTY to
|
||||
proc json but this can cause line truncation in large files.
|
||||
|
||||
|
||||
@version 9.2
|
||||
@author Allan Bowe
|
||||
@@ -3106,9 +3108,8 @@ create table &outds (rename=(
|
||||
proc sql;drop table &tempds;
|
||||
data &tempds /view=&tempds;set &ds;
|
||||
%if &fmt=N %then format _numeric_ best32.;;
|
||||
proc json out=&jref
|
||||
proc json out=&jref pretty
|
||||
%if &action=ARR %then nokeys ;
|
||||
%if &dbg ge 131 %then pretty ;
|
||||
;export &tempds / nosastags fmtnumeric;
|
||||
run;
|
||||
proc sql;drop view &tempds;
|
||||
@@ -6053,9 +6054,8 @@ data _null_;
|
||||
put ' proc sql;drop table &tempds; ';
|
||||
put ' data &tempds /view=&tempds;set &ds; ';
|
||||
put ' %if &fmt=N %then format _numeric_ best32.;; ';
|
||||
put ' proc json out=&jref ';
|
||||
put ' proc json out=&jref pretty ';
|
||||
put ' %if &action=ARR %then nokeys ; ';
|
||||
put ' %if &dbg ge 131 %then pretty ; ';
|
||||
put ' ;export &tempds / nosastags fmtnumeric; ';
|
||||
put ' run; ';
|
||||
put ' proc sql;drop view &tempds; ';
|
||||
@@ -9840,9 +9840,8 @@ data _null_;
|
||||
put ' proc sql;drop table &tempds; ';
|
||||
put ' data &tempds /view=&tempds;set &ds; ';
|
||||
put ' %if &fmt=N %then format _numeric_ best32.;; ';
|
||||
put ' proc json out=&jref ';
|
||||
put ' proc json out=&jref pretty ';
|
||||
put ' %if &action=ARR %then nokeys ; ';
|
||||
put ' %if &dbg ge 131 %then pretty ; ';
|
||||
put ' ;export &tempds / nosastags fmtnumeric; ';
|
||||
put ' run; ';
|
||||
put ' proc sql;drop view &tempds; ';
|
||||
|
||||
Reference in New Issue
Block a user