@sasjs/core 4.65.5 → 4.66.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/viya/mv_createfolder.sas +0 -1
- package/viya/mv_createwebservice.sas +12 -3
- package/viya/mv_webout.sas +12 -3
package/package.json
CHANGED
package/viya/mv_createfolder.sas
CHANGED
|
@@ -594,7 +594,7 @@ data _null_;
|
|
|
594
594
|
put ' ,showmeta=N,maxobs=MAX,workobs=0 ';
|
|
595
595
|
put '); ';
|
|
596
596
|
put '%global _webin_file_count _webin_fileuri _debug _omittextlog _webin_name ';
|
|
597
|
-
put ' sasjs_tables SYS_JES_JOB_URI; ';
|
|
597
|
+
put ' sasjs_tables SYS_JES_JOB_URI _EXECUTIONTASKS; ';
|
|
598
598
|
put '%if %index("&_debug",log) %then %let _debug=131; ';
|
|
599
599
|
put ' ';
|
|
600
600
|
put '%local i tempds table; ';
|
|
@@ -609,6 +609,11 @@ data _null_;
|
|
|
609
609
|
put ' %let _webin_file_count=%eval(&_webin_file_count+0); ';
|
|
610
610
|
put ' %let _webin_fileuri1=&_webin_fileuri; ';
|
|
611
611
|
put ' %let _webin_name1=&_webin_name; ';
|
|
612
|
+
put ' %if &_EXECUTIONTASKS=true %then %do; ';
|
|
613
|
+
put ' /* TODO - remove this once SAS Track CS0409737 is resolved */ ';
|
|
614
|
+
put ' /* links: https://github.com/sasjs/adapter/issues/884 */ ';
|
|
615
|
+
put ' %if %upcase(&_webin_name)=_SASJS_NOOP %then %let _webin_file_count=0; ';
|
|
616
|
+
put ' %end; ';
|
|
612
617
|
put ' %end; ';
|
|
613
618
|
put ' ';
|
|
614
619
|
put ' /* if the sasjs_tables param is passed, we expect param based upload */ ';
|
|
@@ -649,8 +654,12 @@ data _null_;
|
|
|
649
654
|
put ' %end; ';
|
|
650
655
|
put ' %else %do i=1 %to &_webin_file_count; ';
|
|
651
656
|
put ' /* read in any files that are sent */ ';
|
|
652
|
-
put '
|
|
653
|
-
put '
|
|
657
|
+
put ' %if &_EXECUTIONTASKS=true %then %do; ';
|
|
658
|
+
put ' filename indata "%sysfunc(pathname(&&_webin_fileref&i))" lrecl=999999; ';
|
|
659
|
+
put ' %end; ';
|
|
660
|
+
put ' %else %do; ';
|
|
661
|
+
put ' filename indata filesrvc "&&_webin_fileuri&i" lrecl=999999; ';
|
|
662
|
+
put ' %end; ';
|
|
654
663
|
put ' data _null_; ';
|
|
655
664
|
put ' infile indata termstr=crlf lrecl=32767; ';
|
|
656
665
|
put ' input; ';
|
package/viya/mv_webout.sas
CHANGED
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
,showmeta=N,maxobs=MAX,workobs=0
|
|
56
56
|
);
|
|
57
57
|
%global _webin_file_count _webin_fileuri _debug _omittextlog _webin_name
|
|
58
|
-
sasjs_tables SYS_JES_JOB_URI;
|
|
58
|
+
sasjs_tables SYS_JES_JOB_URI _EXECUTIONTASKS;
|
|
59
59
|
%if %index("&_debug",log) %then %let _debug=131;
|
|
60
60
|
|
|
61
61
|
%local i tempds table;
|
|
@@ -70,6 +70,11 @@
|
|
|
70
70
|
%let _webin_file_count=%eval(&_webin_file_count+0);
|
|
71
71
|
%let _webin_fileuri1=&_webin_fileuri;
|
|
72
72
|
%let _webin_name1=&_webin_name;
|
|
73
|
+
%if &_EXECUTIONTASKS=true %then %do;
|
|
74
|
+
/* TODO - remove this once SAS Track CS0409737 is resolved */
|
|
75
|
+
/* links: https://github.com/sasjs/adapter/issues/884 */
|
|
76
|
+
%if %upcase(&_webin_name)=_SASJS_NOOP %then %let _webin_file_count=0;
|
|
77
|
+
%end;
|
|
73
78
|
%end;
|
|
74
79
|
|
|
75
80
|
/* if the sasjs_tables param is passed, we expect param based upload */
|
|
@@ -110,8 +115,12 @@
|
|
|
110
115
|
%end;
|
|
111
116
|
%else %do i=1 %to &_webin_file_count;
|
|
112
117
|
/* read in any files that are sent */
|
|
113
|
-
|
|
114
|
-
|
|
118
|
+
%if &_EXECUTIONTASKS=true %then %do;
|
|
119
|
+
filename indata "%sysfunc(pathname(&&_webin_fileref&i))" lrecl=999999;
|
|
120
|
+
%end;
|
|
121
|
+
%else %do;
|
|
122
|
+
filename indata filesrvc "&&_webin_fileuri&i" lrecl=999999;
|
|
123
|
+
%end;
|
|
115
124
|
data _null_;
|
|
116
125
|
infile indata termstr=crlf lrecl=32767;
|
|
117
126
|
input;
|