@sasjs/core 5.5.0 → 5.5.2

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.
@@ -9,6 +9,9 @@
9
9
  @param [in] libds 2 part dataset or view reference
10
10
  @param [in] varlist space separated variable names
11
11
 
12
+ <h4> SAS Macros </h4>
13
+ @li mf_abort.sas
14
+
12
15
  @version 9.2
13
16
  @author Allan Bowe
14
17
  @cond
package/base/mp_abort.sas CHANGED
@@ -66,7 +66,7 @@
66
66
  , mode=REGULAR
67
67
  )/*/STORE SOURCE*/;
68
68
 
69
- %global sysprocessmode sysprocessname sasjs_stpsrv_header_loc sasjsprocessmode;
69
+ %global sysprocessmode sysprocessname _sasjs_webout_headers sasjsprocessmode;
70
70
  %local fref fid i;
71
71
 
72
72
  %if not(%eval(%unquote(&iftrue))) %then %return;
@@ -171,7 +171,7 @@ and %superq(SYSPROCESSNAME) ne %str(Compute Server)
171
171
  name="_webout.json" lrecl=999999 mod;
172
172
  %end;
173
173
  %end;
174
- %else %if %sysfunc(filename(fref,&sasjs_stpsrv_header_loc))=0 %then %do;
174
+ %else %if %sysfunc(filename(fref,&_sasjs_webout_headers))=0 %then %do;
175
175
  options nobomfile;
176
176
  /* set up http header for SASjs Server */
177
177
  %let fid=%sysfunc(fopen(&fref,A));
package/base/mp_chop.sas CHANGED
@@ -61,9 +61,9 @@
61
61
  <h4> SAS Macros </h4>
62
62
  @li mf_getuniquefileref.sas
63
63
  @li mf_getuniquename.sas
64
+ @li mp_abort.sas
64
65
 
65
66
  <h4> Related Macros </h4>
66
- @li mp_abort.sas
67
67
  @li mp_gsubfile.sas
68
68
  @li mp_replace.sas
69
69
  @li mp_chop.test.sas
@@ -13,6 +13,10 @@
13
13
  @param [out] outds= (work.mp_distinctfmtvalues) dataset to create.
14
14
  @param [in] varlen= (2000) length of variable to create
15
15
 
16
+ <h4> SAS Macros </h4>
17
+ @li mf_getvarformat.sas
18
+ @li mf_getvartype.sas
19
+
16
20
  @version 9.2
17
21
  @author Allan Bowe
18
22
 
@@ -60,6 +60,7 @@
60
60
  @li mp_filtercheck.sas
61
61
  @li mp_hashdataset.sas
62
62
  @li mp_retainedkey.sas
63
+ @li mp_lockanytable.sas
63
64
 
64
65
  <h4> Related Macros </h4>
65
66
  @li mp_filtercheck.sas
@@ -6,7 +6,8 @@
6
6
 
7
7
  @li Blank labels are filled in with column names
8
8
  @li Formats are reconstructed with default values
9
- @li Types such as DATE / TIME / DATETIME are inferred from the formats
9
+ @li Types such as DATE / TIME / DATETIME are inferred from the formats,
10
+ using mf_dttmfmts.sas so every caller shares one set of format lists
10
11
 
11
12
  Example usage:
12
13
 
@@ -21,6 +22,9 @@
21
22
  |`REGION `|`3 `|`3 `|`REGION `|` `|`$3. `|`C `|`CHARACTER `|
22
23
 
23
24
 
25
+ <h4> SAS Macros </h4>
26
+ @li mf_dttmfmts.sas
27
+
24
28
  <h4> Related Macros </h4>
25
29
  @li mf_getvarlist.sas
26
30
  @li mm_getcols.sas
@@ -53,13 +57,9 @@ data &outds(keep=name type length varnum format label ddtype fmtname);
53
57
  else if formatd=0 then format=cats(fmtname,formatl,'.');
54
58
  else format=cats(fmtname,formatl,'.',formatd);
55
59
  type='N';
56
- if format=:'DATETIME' or format=:'E8601DT' or format=:'NLDATM'
57
- then ddtype='DATETIME';
58
- else if format=:'DATE' or format=:'DDMMYY' or format=:'MMDDYY'
59
- or format=:'YYMMDD' or format=:'E8601DA' or format=:'B8601DA'
60
- or format=:'MONYY' or format=:'NLDATE'
61
- then ddtype='DATE';
62
- else if format=:'TIME' then ddtype='TIME';
60
+ if upcase(fmtname) in (%mf_dttmfmts(DATETIME)) then ddtype='DATETIME';
61
+ else if upcase(fmtname) in (%mf_dttmfmts(DATE)) then ddtype='DATE';
62
+ else if upcase(fmtname) in (%mf_dttmfmts(TIME)) then ddtype='TIME';
63
63
  else ddtype='NUMERIC';
64
64
  end;
65
65
  if label='' then label=name;
package/base/mp_getpk.sas CHANGED
@@ -39,6 +39,7 @@
39
39
  @li mf_getschema.sas
40
40
  @li mp_dropmembers.sas
41
41
  @li mp_getconstraints.sas
42
+ @li mf_getuniquename.sas
42
43
 
43
44
  <h4> Related Macros </h4>
44
45
  @li mp_getpk.test.sas
@@ -36,7 +36,6 @@
36
36
  @li mf_getvarlist.sas
37
37
  @li mf_islibds.sas
38
38
  @li mf_nobs.sas
39
- @li mp_getcols.sas
40
39
  @li mp_getpk.sas
41
40
 
42
41
  <h4> Related Macros </h4>
@@ -15,6 +15,9 @@
15
15
  @param [in] libds= (work.mp_perflog) Provide a dataset in which to store
16
16
  performance stats. Default name is <code>work.mp_perflog</code>;
17
17
 
18
+ <h4> SAS Macros </h4>
19
+ @li mf_existds.sas
20
+
18
21
  @version 9.2
19
22
  @author Allan Bowe
20
23
  @source https://github.com/sasjs/core
@@ -61,7 +61,6 @@
61
61
  @li mf_fmtdttm.sas
62
62
  @li mf_getquotedstr.sas
63
63
  @li mf_getuniquename.sas
64
- @li mf_nobs.sas
65
64
  @li mp_abort.sas
66
65
  @li mp_lockanytable.sas
67
66
 
@@ -23,6 +23,9 @@
23
23
  @param [in] cvars= Space separated list of character variables to hash.
24
24
  @param [in] nvars= Space separated list of numeric variables to hash.
25
25
 
26
+ <h4> SAS Macros </h4>
27
+ @li mf_getuniquename.sas
28
+
26
29
  @version 9.3M5
27
30
  @author Allan Bowe
28
31
  **/
@@ -192,6 +192,7 @@
192
192
  @li mf_wordsinstr1butnotstr2.sas
193
193
  @li mp_abort.sas
194
194
  @li mp_ds2squeeze.sas
195
+ @li mf_getvarlist.sas
195
196
 
196
197
  <h4> Related Macros </h4>
197
198
  @li mddl_dc_difftable.sas
package/base/mp_unzip.sas CHANGED
@@ -23,7 +23,6 @@
23
23
  <h4> SAS Macros </h4>
24
24
  @li mf_mkdir.sas
25
25
  @li mf_getuniquefileref.sas
26
- @li mp_binarycopy.sas
27
26
 
28
27
  @version 9.4
29
28
  @author Allan Bowe
@@ -21,6 +21,7 @@
21
21
  @li mm_getlibs.sas
22
22
  @li mm_gettables.sas
23
23
  @li mm_getcols.sas
24
+ @li mf_nobs.sas
24
25
 
25
26
  @param [in] libds= library.dataset metadata source. Note - table names in metadata
26
27
  can be longer than 32 chars (just fyi, not an issue here)
@@ -22,6 +22,7 @@
22
22
  <h4> SAS Macros </h4>
23
23
  @li mf_verifymacvars.sas
24
24
  @li mm_createfolder.sas
25
+ @li mp_abort.sas
25
26
 
26
27
 
27
28
  @param [in] libname= (My New Library) Library name (as displayed to user,
@@ -16,6 +16,7 @@
16
16
 
17
17
  <h4> SAS Macros </h4>
18
18
  @li mm_gettree.sas
19
+ @li mf_nobs.sas
19
20
 
20
21
  @param [in] tree= () the metadata folder location in which to search.
21
22
  Leave blank for all folders. Does not search subdirectories.
@@ -42,6 +42,7 @@
42
42
 
43
43
  <h4> SAS Macros </h4>
44
44
  @li mp_jsonout.sas
45
+ @li mf_getuser.sas
45
46
 
46
47
  <h4> Related Macros </h4>
47
48
  @li ms_webout.sas
package/package.json CHANGED
@@ -43,5 +43,5 @@
43
43
  "devDependencies": {
44
44
  "@nogoo9/gitleaks": "8.30.1-post.2"
45
45
  },
46
- "version": "5.5.0"
46
+ "version": "5.5.2"
47
47
  }
@@ -8,7 +8,7 @@
8
8
  the server.
9
9
 
10
10
  The location of this file is driven by the global variable
11
- `sasjs_stpsrv_header_loc` which is made available in the autoexec.
11
+ `_sasjs_webout_headers` which is made available in the autoexec.
12
12
 
13
13
  Usage:
14
14
 
@@ -28,11 +28,11 @@
28
28
  %macro mfs_httpheader(header_name
29
29
  ,header_value
30
30
  )/*/STORE SOURCE*/;
31
- %global sasjs_stpsrv_header_loc;
31
+ %global _sasjs_webout_headers;
32
32
  %local fref fid i;
33
33
 
34
- %if %sysfunc(filename(fref,&sasjs_stpsrv_header_loc)) ne 0 %then %do;
35
- %put &=fref &=sasjs_stpsrv_header_loc;
34
+ %if %sysfunc(filename(fref,&_sasjs_webout_headers)) ne 0 %then %do;
35
+ %put &=fref &=_sasjs_webout_headers;
36
36
  %put %str(ERR)OR: %sysfunc(sysmsg());
37
37
  %return;
38
38
  %end;
@@ -43,7 +43,6 @@
43
43
  <h4> SAS Macros </h4>
44
44
  @li ms_createfile.sas
45
45
  @li mf_getuser.sas
46
- @li mf_getuniquename.sas
47
46
  @li mf_getuniquefileref.sas
48
47
  @li mp_abort.sas
49
48
 
@@ -632,11 +631,11 @@ data _null_;
632
631
  put '%macro mfs_httpheader(header_name ';
633
632
  put ' ,header_value ';
634
633
  put ')/*/STORE SOURCE*/; ';
635
- put '%global sasjs_stpsrv_header_loc; ';
634
+ put '%global _sasjs_webout_headers; ';
636
635
  put '%local fref fid i; ';
637
636
  put ' ';
638
- put '%if %sysfunc(filename(fref,&sasjs_stpsrv_header_loc)) ne 0 %then %do; ';
639
- put ' %put &=fref &=sasjs_stpsrv_header_loc; ';
637
+ put '%if %sysfunc(filename(fref,&_sasjs_webout_headers)) ne 0 %then %do; ';
638
+ put ' %put &=fref &=_sasjs_webout_headers; ';
640
639
  put ' %put %str(ERR)OR: %sysfunc(sysmsg()); ';
641
640
  put ' %return; ';
642
641
  put '%end; ';
@@ -36,8 +36,6 @@
36
36
  <h4> SAS Macros </h4>
37
37
  @li mf_getuniquefileref.sas
38
38
  @li mf_getuniquename.sas
39
- @li mp_abort.sas
40
- @li mp_binarycopy.sas
41
39
  @li mp_chop.sas
42
40
  @li mp_ds2csv.sas
43
41
  @li ms_runstp.sas
@@ -70,6 +70,7 @@
70
70
  @li mp_replace.sas
71
71
  @li mv_createfolder.sas
72
72
  @li mv_getviyafileextparms.sas
73
+ @li mf_getuniquelibref.sas
73
74
 
74
75
  <h4> Related Macros</h4>
75
76
  @li mv_createfile.sas
@@ -86,6 +86,8 @@
86
86
  @li mp_binarycopy.sas
87
87
  @li mf_getplatform.sas
88
88
  @li mf_existfileref.sas
89
+ @li mf_getuniquefileref.sas
90
+ @li mf_getuniquelibref.sas
89
91
 
90
92
  **/
91
93
 
@@ -26,8 +26,6 @@
26
26
  @li mf_getuniquelibref.sas
27
27
  @li mf_getuniquename.sas
28
28
  @li mf_getvalue.sas
29
- @li mf_getvarlist.sas
30
- @li mf_getvartype.sas
31
29
  @li mf_isblank.sas
32
30
  @li mf_nobs.sas
33
31
  @li mp_abort.sas
@@ -81,6 +81,15 @@
81
81
  @param [out] outref= A fileref to which the spawned job logs should be
82
82
  appended.
83
83
 
84
+ <h4> SAS Macros </h4>
85
+ @li mp_abort.sas
86
+ @li mf_existvar.sas
87
+ @li mf_nobs.sas
88
+ @li mf_getplatform.sas
89
+ @li mf_getuniquefileref.sas
90
+ @li mf_getuniquelibref.sas
91
+ @li mv_getjoblog.sas
92
+
84
93
  @version VIYA V.03.04
85
94
  @author Allan Bowe, source: https://github.com/sasjs/core
86
95
 
@@ -39,7 +39,6 @@
39
39
  @li mf_getuniquefileref.sas
40
40
  @li mm_createstp.sas
41
41
  @li mm_deletestp.sas
42
- @li mm_getstpcode.sas
43
42
  @li ms_createfile.sas
44
43
  @li ms_deletefile.sas
45
44
  @li mv_createfile.sas
@@ -27,6 +27,7 @@ Usage:
27
27
  @li mm_createstp.sas
28
28
  @li ms_createfile.sas
29
29
  @li mv_createjob.sas
30
+ @li mf_getuniquefileref.sas
30
31
 
31
32
  @param [in,out] path= The full folder path where the job will be created
32
33
  @param [in,out] name= Job name. Avoid spaces.
@@ -38,11 +38,11 @@
38
38
  @li mf_getuniquename.sas
39
39
  @li mp_abort.sas
40
40
  @li mp_binarycopy.sas
41
- @li mp_chop.sas
42
41
  @li mp_ds2csv.sas
43
42
  @li ms_testservice.sas
44
43
  @li mv_getjobresult.sas
45
44
  @li mv_jobflow.sas
45
+ @li mf_nobs.sas
46
46
 
47
47
  <h4> Related Programs </h4>
48
48
  @li mx_execute.test.sas