@sasjs/core 4.34.2 → 4.35.0
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/base/mp_ds2fmtds.sas +1 -1
- package/base/mp_jsonout.sas +1 -1
- package/base/mp_perflog.sas +9 -8
- package/meta/mm_createwebservice.sas +2 -2
- package/meta/mm_webout.sas +4 -3
- package/package.json +1 -1
- package/server/ms_createwebservice.sas +2 -2
- package/server/ms_webout.sas +4 -2
- package/viya/mv_createwebservice.sas +3 -3
- package/viya/mv_webout.sas +5 -3
package/base/mp_ds2fmtds.sas
CHANGED
package/base/mp_jsonout.sas
CHANGED
package/base/mp_perflog.sas
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
@file
|
|
3
|
-
@brief Logs
|
|
4
|
-
@details If the dataset does not exist, it is created.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
@brief Logs a message in a dataset every time it is invoked
|
|
4
|
+
@details If the dataset does not exist, it is created.
|
|
5
|
+
Usage:
|
|
6
|
+
|
|
7
|
+
%mp_perflog(started)
|
|
8
|
+
%mp_perflog()
|
|
9
|
+
%mp_perflog(startanew,libds=work.newdataset)
|
|
10
|
+
%mp_perflog(finished,libds=work.newdataset)
|
|
11
|
+
%mp_perflog(finished)
|
|
11
12
|
|
|
12
13
|
|
|
13
14
|
@param label Provide label to go into the control dataset
|
|
@@ -369,7 +369,7 @@ data _null_;
|
|
|
369
369
|
put ' ';
|
|
370
370
|
put '%mend mf_getuser; ';
|
|
371
371
|
put '%macro mm_webout(action,ds,dslabel=,fref=_webout,fmt=Y,missing=NULL ';
|
|
372
|
-
put ' ,showmeta=N ';
|
|
372
|
+
put ' ,showmeta=N,maxobs=MAX ';
|
|
373
373
|
put '); ';
|
|
374
374
|
put '%global _webin_file_count _webin_fileref1 _webin_name1 _program _debug ';
|
|
375
375
|
put ' sasjs_tables; ';
|
|
@@ -436,7 +436,7 @@ data _null_;
|
|
|
436
436
|
put ' ';
|
|
437
437
|
put '%else %if &action=ARR or &action=OBJ %then %do; ';
|
|
438
438
|
put ' %mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref ';
|
|
439
|
-
put ' ,engine=&jsonengine,missing=&missing,showmeta=&showmeta ';
|
|
439
|
+
put ' ,engine=&jsonengine,missing=&missing,showmeta=&showmeta,maxobs=&maxobs ';
|
|
440
440
|
put ' ) ';
|
|
441
441
|
put '%end; ';
|
|
442
442
|
put '%else %if &action=CLOSE %then %do; ';
|
package/meta/mm_webout.sas
CHANGED
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
such as the column formats and types. The metadata is contained inside an
|
|
35
35
|
object with the same name as the table but prefixed with a dollar sign - ie,
|
|
36
36
|
`,"$tablename":{"formats":{"col1":"$CHAR1"},"types":{"COL1":"C"}}`
|
|
37
|
-
|
|
37
|
+
@param [in] maxobs= (MAX) Provide an integer to limit the number of input rows
|
|
38
|
+
that should be converted to output JSON
|
|
38
39
|
|
|
39
40
|
<h4> SAS Macros </h4>
|
|
40
41
|
@li mp_jsonout.sas
|
|
@@ -44,7 +45,7 @@
|
|
|
44
45
|
|
|
45
46
|
**/
|
|
46
47
|
%macro mm_webout(action,ds,dslabel=,fref=_webout,fmt=Y,missing=NULL
|
|
47
|
-
,showmeta=N
|
|
48
|
+
,showmeta=N,maxobs=MAX
|
|
48
49
|
);
|
|
49
50
|
%global _webin_file_count _webin_fileref1 _webin_name1 _program _debug
|
|
50
51
|
sasjs_tables;
|
|
@@ -111,7 +112,7 @@
|
|
|
111
112
|
|
|
112
113
|
%else %if &action=ARR or &action=OBJ %then %do;
|
|
113
114
|
%mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref
|
|
114
|
-
,engine=&jsonengine,missing=&missing,showmeta=&showmeta
|
|
115
|
+
,engine=&jsonengine,missing=&missing,showmeta=&showmeta,maxobs=&maxobs
|
|
115
116
|
)
|
|
116
117
|
%end;
|
|
117
118
|
%else %if &action=CLOSE %then %do;
|
package/package.json
CHANGED
|
@@ -371,7 +371,7 @@ data _null_;
|
|
|
371
371
|
put '%mend mf_getuser; ';
|
|
372
372
|
put ' ';
|
|
373
373
|
put '%macro ms_webout(action,ds,dslabel=,fref=_webout,fmt=Y,missing=NULL ';
|
|
374
|
-
put ' ,showmeta=N ';
|
|
374
|
+
put ' ,showmeta=N,maxobs=MAX ';
|
|
375
375
|
put '); ';
|
|
376
376
|
put '%global _webin_file_count _webin_fileref1 _webin_name1 _program _debug ';
|
|
377
377
|
put ' sasjs_tables; ';
|
|
@@ -430,7 +430,7 @@ data _null_;
|
|
|
430
430
|
put ' %let missing=NULL; ';
|
|
431
431
|
put ' %end; ';
|
|
432
432
|
put ' %mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref ';
|
|
433
|
-
put ' ,engine=DATASTEP,missing=&missing,showmeta=&showmeta ';
|
|
433
|
+
put ' ,engine=DATASTEP,missing=&missing,showmeta=&showmeta,maxobs=&maxobs ';
|
|
434
434
|
put ' ) ';
|
|
435
435
|
put '%end; ';
|
|
436
436
|
put '%else %if &action=CLOSE %then %do; ';
|
package/server/ms_webout.sas
CHANGED
|
@@ -31,6 +31,8 @@
|
|
|
31
31
|
such as the column formats and types. The metadata is contained inside an
|
|
32
32
|
object with the same name as the table but prefixed with a dollar sign - ie,
|
|
33
33
|
`,"$tablename":{"formats":{"col1":"$CHAR1"},"types":{"COL1":"C"}}`
|
|
34
|
+
@param [in] maxobs= (MAX) Provide an integer to limit the number of input rows
|
|
35
|
+
that should be converted to output JSON
|
|
34
36
|
|
|
35
37
|
<h4> SAS Macros </h4>
|
|
36
38
|
@li mf_getuser.sas
|
|
@@ -47,7 +49,7 @@
|
|
|
47
49
|
**/
|
|
48
50
|
|
|
49
51
|
%macro ms_webout(action,ds,dslabel=,fref=_webout,fmt=Y,missing=NULL
|
|
50
|
-
,showmeta=N
|
|
52
|
+
,showmeta=N,maxobs=MAX
|
|
51
53
|
);
|
|
52
54
|
%global _webin_file_count _webin_fileref1 _webin_name1 _program _debug
|
|
53
55
|
sasjs_tables;
|
|
@@ -106,7 +108,7 @@
|
|
|
106
108
|
%let missing=NULL;
|
|
107
109
|
%end;
|
|
108
110
|
%mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref
|
|
109
|
-
,engine=DATASTEP,missing=&missing,showmeta=&showmeta
|
|
111
|
+
,engine=DATASTEP,missing=&missing,showmeta=&showmeta,maxobs=&maxobs
|
|
110
112
|
)
|
|
111
113
|
%end;
|
|
112
114
|
%else %if &action=CLOSE %then %do;
|
|
@@ -512,7 +512,7 @@ data _null_;
|
|
|
512
512
|
put ' ';
|
|
513
513
|
put '%mend mf_getuser; ';
|
|
514
514
|
put '%macro mv_webout(action,ds,fref=_mvwtemp,dslabel=,fmt=Y,stream=Y,missing=NULL ';
|
|
515
|
-
put ' ,showmeta=N ';
|
|
515
|
+
put ' ,showmeta=N,maxobs=MAX ';
|
|
516
516
|
put '); ';
|
|
517
517
|
put '%global _webin_file_count _webin_fileuri _debug _omittextlog _webin_name ';
|
|
518
518
|
put ' sasjs_tables SYS_JES_JOB_URI; ';
|
|
@@ -614,8 +614,8 @@ data _null_;
|
|
|
614
614
|
put ' run; ';
|
|
615
615
|
put '%end; ';
|
|
616
616
|
put '%else %if &action=ARR or &action=OBJ %then %do; ';
|
|
617
|
-
put ' %mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt ';
|
|
618
|
-
put ' ,
|
|
617
|
+
put ' %mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref ';
|
|
618
|
+
put ' ,engine=DATASTEP,missing=&missing,showmeta=&showmeta,maxobs=&maxobs ';
|
|
619
619
|
put ' ) ';
|
|
620
620
|
put '%end; ';
|
|
621
621
|
put '%else %if &action=CLOSE %then %do; ';
|
package/viya/mv_webout.sas
CHANGED
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
such as the column formats and types. The metadata is contained inside an
|
|
34
34
|
object with the same name as the table but prefixed with a dollar sign - ie,
|
|
35
35
|
`,"$tablename":{"formats":{"col1":"$CHAR1"},"types":{"COL1":"C"}}`
|
|
36
|
+
@param [in] maxobs= (MAX) Provide an integer to limit the number of input rows
|
|
37
|
+
that should be converted to output JSON
|
|
36
38
|
|
|
37
39
|
<h4> SAS Macros </h4>
|
|
38
40
|
@li mp_jsonout.sas
|
|
@@ -43,7 +45,7 @@
|
|
|
43
45
|
|
|
44
46
|
**/
|
|
45
47
|
%macro mv_webout(action,ds,fref=_mvwtemp,dslabel=,fmt=Y,stream=Y,missing=NULL
|
|
46
|
-
,showmeta=N
|
|
48
|
+
,showmeta=N,maxobs=MAX
|
|
47
49
|
);
|
|
48
50
|
%global _webin_file_count _webin_fileuri _debug _omittextlog _webin_name
|
|
49
51
|
sasjs_tables SYS_JES_JOB_URI;
|
|
@@ -145,8 +147,8 @@
|
|
|
145
147
|
run;
|
|
146
148
|
%end;
|
|
147
149
|
%else %if &action=ARR or &action=OBJ %then %do;
|
|
148
|
-
%mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt
|
|
149
|
-
,
|
|
150
|
+
%mp_jsonout(&action,&ds,dslabel=&dslabel,fmt=&fmt,jref=&fref
|
|
151
|
+
,engine=DATASTEP,missing=&missing,showmeta=&showmeta,maxobs=&maxobs
|
|
150
152
|
)
|
|
151
153
|
%end;
|
|
152
154
|
%else %if &action=CLOSE %then %do;
|