From ebd567af4851d9097fce8bbae136d486d1569062 Mon Sep 17 00:00:00 2001 From: munja Date: Thu, 30 Dec 2021 09:53:08 +0000 Subject: [PATCH] fix: adding missing param to mx_createwebservice macros --- all.sas | 30 +++++++++++++++--------------- meta/mm_createwebservice.sas | 7 ++++--- viya/mv_createwebservice.sas | 13 +++++++------ 3 files changed, 26 insertions(+), 24 deletions(-) diff --git a/all.sas b/all.sas index a984aa6..4874302 100644 --- a/all.sas +++ b/all.sas @@ -7549,15 +7549,12 @@ filename &tempref clear; @param [out] jref= (_webout) The fileref to which to send the JSON @param [out] dslabel= The name to give the table in the exported JSON @param [in] fmt= (Y) Whether to keep (Y) or strip (N) formats from the table - @param engine= (DATASTEP) Which engine to use to send the JSON. Options: + @param [in] engine= (DATASTEP) Which engine to use to send the JSON. Options: @li PROCJSON (default) @li DATASTEP (more reliable when data has non standard characters) - @param missing= (NULL) Special numeric missing values can be sent as NULL + @param [in] missing= (NULL) Special numeric missing values can be sent as NULL (eg `null`) or as STRING values (eg `".a"` or `".b"`) - @param dbg= DEPRECATED - was used to conditionally add PRETTY to - proc json but this can cause line truncation in large files. -

Related Macros

@li mp_ds2fmtds.sas @@ -7567,7 +7564,8 @@ filename &tempref clear; **/ -%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP,dbg=0 +%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP + ,dbg=0 /* DEPRECATED */ ,missing=NULL )/*/STORE SOURCE*/; %put &sysmacroname: output location=&jref; @@ -12673,7 +12671,8 @@ data _null_; put "/* Created on %sysfunc(datetime(),datetime19.) by %mf_getuser() */"; /* WEBOUT BEGIN */ put ' '; - put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP,dbg=0 '; + put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP '; + put ' ,dbg=0 /* DEPRECATED */ '; put ' ,missing=NULL '; put ')/*/STORE SOURCE*/; '; put '%put &sysmacroname: output location=&jref; '; @@ -13018,8 +13017,8 @@ data _null_; put ' '; put '%mend mf_getuser; '; /* WEBOUT END */ - put '%macro webout(action,ds,dslabel=,fmt=);'; - put ' %mm_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt)'; + put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL);'; + put ' %mm_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing)'; put '%mend;'; run; @@ -17594,9 +17593,9 @@ run; that location @param [in] adapter= the macro uses the sasjs adapter by default. To use another adapter, add a (different) fileref here. - @param [in] contextname= Choose a specific context on which to run the Job. Leave - blank to use the default context. From Viya 3.5 it is possible to configure - a shared context - see + @param [in] contextname= Choose a specific context on which to run the Job. + Leave blank to use the default context. From Viya 3.5 it is possible to + configure a shared context - see https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5pyhn1wg3ja0drdl6h.htm&docsetVersion=3.5&locale=en @param [in] mdebug=(0) set to 1 to enable DEBUG messages @@ -17777,7 +17776,8 @@ data _null_; put "/* Created on %sysfunc(datetime(),datetime19.) by &sysuserid */"; /* WEBOUT BEGIN */ put ' '; - put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP,dbg=0 '; + put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP '; + put ' ,dbg=0 /* DEPRECATED */ '; put ' ,missing=NULL '; put ')/*/STORE SOURCE*/; '; put '%put &sysmacroname: output location=&jref; '; @@ -18185,8 +18185,8 @@ data _null_; put '%global __program _program;'; put '%let _program=%sysfunc(coalescec(&__program,&_program));'; put ' '; - put '%macro webout(action,ds,dslabel=,fmt=);'; - put ' %mv_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt)'; + put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL);'; + put ' %mv_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing)'; put '%mend;'; run; diff --git a/meta/mm_createwebservice.sas b/meta/mm_createwebservice.sas index 527f98a..3880cf1 100644 --- a/meta/mm_createwebservice.sas +++ b/meta/mm_createwebservice.sas @@ -89,7 +89,8 @@ data _null_; put "/* Created on %sysfunc(datetime(),datetime19.) by %mf_getuser() */"; /* WEBOUT BEGIN */ put ' '; - put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP,dbg=0 '; + put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP '; + put ' ,dbg=0 /* DEPRECATED */ '; put ' ,missing=NULL '; put ')/*/STORE SOURCE*/; '; put '%put &sysmacroname: output location=&jref; '; @@ -434,8 +435,8 @@ data _null_; put ' '; put '%mend mf_getuser; '; /* WEBOUT END */ - put '%macro webout(action,ds,dslabel=,fmt=);'; - put ' %mm_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt)'; + put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL);'; + put ' %mm_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing)'; put '%mend;'; run; diff --git a/viya/mv_createwebservice.sas b/viya/mv_createwebservice.sas index d8d18c0..de854a7 100644 --- a/viya/mv_createwebservice.sas +++ b/viya/mv_createwebservice.sas @@ -54,9 +54,9 @@ that location @param [in] adapter= the macro uses the sasjs adapter by default. To use another adapter, add a (different) fileref here. - @param [in] contextname= Choose a specific context on which to run the Job. Leave - blank to use the default context. From Viya 3.5 it is possible to configure - a shared context - see + @param [in] contextname= Choose a specific context on which to run the Job. + Leave blank to use the default context. From Viya 3.5 it is possible to + configure a shared context - see https://go.documentation.sas.com/?docsetId=calcontexts&docsetTarget=n1hjn8eobk5pyhn1wg3ja0drdl6h.htm&docsetVersion=3.5&locale=en @param [in] mdebug=(0) set to 1 to enable DEBUG messages @@ -237,7 +237,8 @@ data _null_; put "/* Created on %sysfunc(datetime(),datetime19.) by &sysuserid */"; /* WEBOUT BEGIN */ put ' '; - put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP,dbg=0 '; + put '%macro mp_jsonout(action,ds,jref=_webout,dslabel=,fmt=Y,engine=DATASTEP '; + put ' ,dbg=0 /* DEPRECATED */ '; put ' ,missing=NULL '; put ')/*/STORE SOURCE*/; '; put '%put &sysmacroname: output location=&jref; '; @@ -645,8 +646,8 @@ data _null_; put '%global __program _program;'; put '%let _program=%sysfunc(coalescec(&__program,&_program));'; put ' '; - put '%macro webout(action,ds,dslabel=,fmt=);'; - put ' %mv_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt)'; + put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL);'; + put ' %mv_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing)'; put '%mend;'; run;