mirror of
https://github.com/sasjs/core.git
synced 2026-01-18 14:00: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)
|
* PROCJSON (default)
|
||||||
* DATASTEP
|
* 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
|
@version 9.2
|
||||||
@author Allan Bowe
|
@author Allan Bowe
|
||||||
@@ -3106,9 +3108,8 @@ create table &outds (rename=(
|
|||||||
proc sql;drop table &tempds;
|
proc sql;drop table &tempds;
|
||||||
data &tempds /view=&tempds;set &ds;
|
data &tempds /view=&tempds;set &ds;
|
||||||
%if &fmt=N %then format _numeric_ best32.;;
|
%if &fmt=N %then format _numeric_ best32.;;
|
||||||
proc json out=&jref
|
proc json out=&jref pretty
|
||||||
%if &action=ARR %then nokeys ;
|
%if &action=ARR %then nokeys ;
|
||||||
%if &dbg ge 131 %then pretty ;
|
|
||||||
;export &tempds / nosastags fmtnumeric;
|
;export &tempds / nosastags fmtnumeric;
|
||||||
run;
|
run;
|
||||||
proc sql;drop view &tempds;
|
proc sql;drop view &tempds;
|
||||||
@@ -6053,9 +6054,8 @@ data _null_;
|
|||||||
put ' proc sql;drop table &tempds; ';
|
put ' proc sql;drop table &tempds; ';
|
||||||
put ' data &tempds /view=&tempds;set &ds; ';
|
put ' data &tempds /view=&tempds;set &ds; ';
|
||||||
put ' %if &fmt=N %then format _numeric_ best32.;; ';
|
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 &action=ARR %then nokeys ; ';
|
||||||
put ' %if &dbg ge 131 %then pretty ; ';
|
|
||||||
put ' ;export &tempds / nosastags fmtnumeric; ';
|
put ' ;export &tempds / nosastags fmtnumeric; ';
|
||||||
put ' run; ';
|
put ' run; ';
|
||||||
put ' proc sql;drop view &tempds; ';
|
put ' proc sql;drop view &tempds; ';
|
||||||
@@ -9840,9 +9840,8 @@ data _null_;
|
|||||||
put ' proc sql;drop table &tempds; ';
|
put ' proc sql;drop table &tempds; ';
|
||||||
put ' data &tempds /view=&tempds;set &ds; ';
|
put ' data &tempds /view=&tempds;set &ds; ';
|
||||||
put ' %if &fmt=N %then format _numeric_ best32.;; ';
|
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 &action=ARR %then nokeys ; ';
|
||||||
put ' %if &dbg ge 131 %then pretty ; ';
|
|
||||||
put ' ;export &tempds / nosastags fmtnumeric; ';
|
put ' ;export &tempds / nosastags fmtnumeric; ';
|
||||||
put ' run; ';
|
put ' run; ';
|
||||||
put ' proc sql;drop view &tempds; ';
|
put ' proc sql;drop view &tempds; ';
|
||||||
|
|||||||
@@ -40,7 +40,9 @@
|
|||||||
* PROCJSON (default)
|
* PROCJSON (default)
|
||||||
* DATASTEP
|
* 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
|
@version 9.2
|
||||||
@author Allan Bowe
|
@author Allan Bowe
|
||||||
@@ -66,9 +68,8 @@
|
|||||||
proc sql;drop table &tempds;
|
proc sql;drop table &tempds;
|
||||||
data &tempds /view=&tempds;set &ds;
|
data &tempds /view=&tempds;set &ds;
|
||||||
%if &fmt=N %then format _numeric_ best32.;;
|
%if &fmt=N %then format _numeric_ best32.;;
|
||||||
proc json out=&jref
|
proc json out=&jref pretty
|
||||||
%if &action=ARR %then nokeys ;
|
%if &action=ARR %then nokeys ;
|
||||||
%if &dbg ge 131 %then pretty ;
|
|
||||||
;export &tempds / nosastags fmtnumeric;
|
;export &tempds / nosastags fmtnumeric;
|
||||||
run;
|
run;
|
||||||
proc sql;drop view &tempds;
|
proc sql;drop view &tempds;
|
||||||
|
|||||||
@@ -104,9 +104,8 @@ data _null_;
|
|||||||
put ' proc sql;drop table &tempds; ';
|
put ' proc sql;drop table &tempds; ';
|
||||||
put ' data &tempds /view=&tempds;set &ds; ';
|
put ' data &tempds /view=&tempds;set &ds; ';
|
||||||
put ' %if &fmt=N %then format _numeric_ best32.;; ';
|
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 &action=ARR %then nokeys ; ';
|
||||||
put ' %if &dbg ge 131 %then pretty ; ';
|
|
||||||
put ' ;export &tempds / nosastags fmtnumeric; ';
|
put ' ;export &tempds / nosastags fmtnumeric; ';
|
||||||
put ' run; ';
|
put ' run; ';
|
||||||
put ' proc sql;drop view &tempds; ';
|
put ' proc sql;drop view &tempds; ';
|
||||||
|
|||||||
@@ -241,9 +241,8 @@ data _null_;
|
|||||||
put ' proc sql;drop table &tempds; ';
|
put ' proc sql;drop table &tempds; ';
|
||||||
put ' data &tempds /view=&tempds;set &ds; ';
|
put ' data &tempds /view=&tempds;set &ds; ';
|
||||||
put ' %if &fmt=N %then format _numeric_ best32.;; ';
|
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 &action=ARR %then nokeys ; ';
|
||||||
put ' %if &dbg ge 131 %then pretty ; ';
|
|
||||||
put ' ;export &tempds / nosastags fmtnumeric; ';
|
put ' ;export &tempds / nosastags fmtnumeric; ';
|
||||||
put ' run; ';
|
put ' run; ';
|
||||||
put ' proc sql;drop view &tempds; ';
|
put ' proc sql;drop view &tempds; ';
|
||||||
|
|||||||
Reference in New Issue
Block a user