@sasjs/core 4.46.4 → 4.46.6

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/.env.server ADDED
@@ -0,0 +1,3 @@
1
+ CLIENT=longExpiringClient
2
+ ACCESS_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImxvbmdFeHBpcmluZ0NsaWVudCIsInVzZXJJZCI6MSwiaWF0IjoxNjkwMjE1MjM3LCJleHAiOjE3MjE3NzIxODl9.VkNrWks4rriq16reeQve5eimV9-SBgA_lqEb9Qb9snk
3
+ REFRESH_TOKEN=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjbGllbnRJZCI6ImxvbmdFeHBpcmluZ0NsaWVudCIsInVzZXJJZCI6MSwiaWF0IjoxNjkwMjE1MjM3LCJleHAiOjE2OTI4MDcyMzd9.fj7OHEyHKGa6g2F6rtBT-TvBiKxnlLqWh1mysXz6ZEM
@@ -94,7 +94,7 @@ data &outds;
94
94
  if libref(lib) ne 0 then do;
95
95
  msg=catx(' ','libref',lib,'is not assigned!');
96
96
  %if &errds=0 %then %do;
97
- putlog "%str(ERR)OR: " msg;
97
+ putlog 'ERR' +(-1) "OR: " msg;
98
98
  %end;
99
99
  output;
100
100
  return;
@@ -102,7 +102,7 @@ data &outds;
102
102
  if exist(cats(lib,'.',ds)) ne 1 then do;
103
103
  msg=catx(' ','libds',lib,'.',ds,'does not exist!');
104
104
  %if &errds=0 %then %do;
105
- putlog "%str(ERR)OR: " msg;
105
+ putlog 'ERR' +(-1) "OR: " msg;
106
106
  %end;
107
107
  output;
108
108
  return;
@@ -111,7 +111,7 @@ data &outds;
111
111
  if is_fmt=0 then do;
112
112
  msg=catx(' ','format',fmt,'on libds',lib,'.',ds,'.',var,'is not valid!');
113
113
  %if &errds=0 %then %do;
114
- putlog "%str(ERR)OR: " msg;
114
+ putlog 'ERR' +(-1) "OR: " msg;
115
115
  %end;
116
116
  output;
117
117
  return;
@@ -123,7 +123,7 @@ data &outds;
123
123
  if dsid=0 then do;
124
124
  msg=catx(' ','libds',lib,'.',ds,' could not be opened!');
125
125
  %if &errds=0 %then %do;
126
- putlog "%str(ERR)OR: " msg;
126
+ putlog 'ERR' +(-1) "OR: " msg;
127
127
  %end;
128
128
  output;
129
129
  return;
@@ -131,7 +131,7 @@ data &outds;
131
131
  if varnum(dsid,var)<1 then do;
132
132
  msg=catx(' ','Variable',lib,'.',ds,'.',var,' was not found!');
133
133
  %if &errds=0 %then %do;
134
- putlog "%str(ERR)OR: " msg;
134
+ putlog 'ERR' +(-1) "OR: " msg;
135
135
  %end;
136
136
  output;
137
137
  end;
package/base/mp_chop.sas CHANGED
@@ -185,7 +185,7 @@ run;
185
185
  infile &outfile lrecl=32767;
186
186
  input;
187
187
  list;
188
- if _n_>50 then stop;
188
+ if _n_>200 then stop;
189
189
  run;
190
190
  %end;
191
191
  /* END */
@@ -69,7 +69,7 @@
69
69
  rc2=filename(fref2,filepath2,'disk','recfm=n');
70
70
  if fcopy(fref1,fref2) ne 0 then do;
71
71
  msg=sysmsg();
72
- putlog "%str(ERR)OR: Unable to copy " filepath " to " filepath2;
72
+ putlog 'ERR' +(-1) "OR: Unable to copy " filepath " to " filepath2;
73
73
  putlog msg=;
74
74
  end;
75
75
  end;
package/base/mp_md5.sas CHANGED
@@ -2,8 +2,7 @@
2
2
  @file
3
3
  @brief Generates an md5 expression for hashing a set of variables
4
4
  @details This is the same algorithm used to hash records in
5
- [Data Controller for SAS](https://datacontroller.io) (free for up
6
- to 5 users).
5
+ [Data Controller for SAS](https://datacontroller.io).
7
6
 
8
7
  It is not designed to be efficient - it is designed to be effective,
9
8
  given the range of edge cases (large floating points, special missing
@@ -6,8 +6,7 @@
6
6
  data recovery, and change re-application. This macro is one of many
7
7
  data management utilities used in [Data Controller for SAS](
8
8
  https:datacontroller.io) - a comprehensive data ingestion solution, which
9
- works on any SAS platform (Viya, SAS 9, Foundation) and is free for up to 5
10
- users.
9
+ works on any SAS platform (Viya, SAS 9, Foundation).
11
10
 
12
11
  NOTE - this macro does not validate the inputs. It is assumed that the
13
12
  datasets containing the new / changed / deleted rows are CORRECT, contain
@@ -71,7 +71,7 @@
71
71
  retain &tempcol;
72
72
  &tempcol=prxparse('/^[_a-z]\w{0,7}\.[_a-z]\w{0,31}$/i');
73
73
  if missing(&tempcol) then do;
74
- putlog "%str(ERR)OR: Invalid expression for LIBDS";
74
+ putlog 'ERR' +(-1) "OR: Invalid expression for LIBDS";
75
75
  stop;
76
76
  end;
77
77
  drop &tempcol;
@@ -85,7 +85,7 @@
85
85
  retain &tempcol;
86
86
  &tempcol=prxparse('/^[_a-z\$]\w{0,31}\.[0-9]*$/i');
87
87
  if missing(&tempcol) then do;
88
- putlog "%str(ERR)OR: Invalid expression for FORMAT";
88
+ putlog 'ERR' +(-1) "OR: Invalid expression for FORMAT";
89
89
  stop;
90
90
  end;
91
91
  drop &tempcol;
@@ -51,12 +51,12 @@ data _null_;
51
51
 
52
52
  * name must not be blank;
53
53
  if ( folderPath = '' ) then do;
54
- put "%str(ERR)OR: &sysmacroname PATH parameter value must be non-blank";
54
+ put 'ERR' +(-1) "OR: &sysmacroname PATH parameter value must be non-blank";
55
55
  end;
56
56
 
57
57
  * must have a starting slash ;
58
58
  if ( substr(folderPath,1,1) ne '/' ) then do;
59
- put "%str(ERR)OR: &sysmacroname PATH param value must have starting slash";
59
+ put 'ERR' +(-1) "OR: &sysmacroname PATH param value must have starting slash";
60
60
  stop;
61
61
  end;
62
62
 
@@ -69,14 +69,14 @@ data _null_;
69
69
 
70
70
  * do not create a root (one level) folder ;
71
71
  if countc(folderPath,'/')=1 then do;
72
- put "%str(ERR)OR: &sysmacroname will not create a new ROOT folder";
72
+ put 'ERR' +(-1) "OR: &sysmacroname will not create a new ROOT folder";
73
73
  stop;
74
74
  end;
75
75
 
76
76
  * check that root folder exists ;
77
77
  root=cats('/',scan(folderpath,1,'/'),"(Folder)");
78
78
  if metadata_pathobj('',root,"",objType,parentId)<1 then do;
79
- put "%str(ERR)OR: " root " does not exist!";
79
+ put 'ERR' +(-1) "OR: " root " does not exist!";
80
80
  stop;
81
81
  end;
82
82
 
@@ -141,7 +141,7 @@ run;
141
141
  putlog "SUCCCESS! &path created.";
142
142
  end;
143
143
  else do;
144
- putlog "%str(ERR)OR: unsuccessful attempt to create &path";
144
+ putlog 'ERR' +(-1) "OR: unsuccessful attempt to create &path";
145
145
  call symputx('syscc',8);
146
146
  end;
147
147
  run;
@@ -58,7 +58,7 @@ data &outds;
58
58
  rc5=metadata_getattr(tsuri,"Name",servercontext);
59
59
  end;
60
60
  else do;
61
- put "%str(ERR)OR: could not find " path;
61
+ put 'ERR' +(-1) "OR: could not find " path;
62
62
  put (_all_)(=);
63
63
  end;
64
64
  &md.put (_all_)(=);
@@ -0,0 +1,53 @@
1
+ -----BEGIN PGP PUBLIC KEY BLOCK-----
2
+ Version: GnuPG v1
3
+
4
+ mQINBFxkI3gBEADMiqkRvmd/xtPBqH9GoFYIfd4BgVZi3N47Idt2RVSxxO3pYqhj
5
+ JU7pRxihw+1g3qPqlEB+5MKWTVKna0lOt7ppu2mrlF+i5AqJdFWjPwKq5AS9kiOq
6
+ NKjMYZlXXC7Pt5bKYjKZze0Cl2N6xsnU5rUJLDxQqGFsIdDez7KRWBgdwREjhR5z
7
+ 9POLc1WBJM21CVle4F0femFhbDr/ZztnoU1VlYwSSivQW9IEuR/giM4eo1mUHaQU
8
+ ZY+oDSfi0OOfxsswe7cDJoRvBnUui6EM+M4Jsq8XTE37FavY91qUh3zaOxM6famE
9
+ YqW8YP/NYO9Gb9OhrPH2H9wS80m+H0q5bRPdNsl7Sg8kqHfvvhEMrizF5Wm16/W6
10
+ GzFHUlAEZapb4hCvxzRcfTNumeFjzG9iZYprfpSO4CABV6rw73EoqpTwmKdXrD7H
11
+ jBBkjPvhNnBURP0NNy4ciPNEbLIwX1LFnjy/xbj4UgUFUVTdsZOOwnjX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kiZP7+zny2eV70vI5y7ivJ3g6pxAcynT0Ya60
43
+ rfjMsIn1qGyFPvGVzIhgWLBIrxLx8bJjewOffoSl5SI4vsU+lp63tKRVTv3PjjL8
44
+ oSqgUD/2rzJfjEDooNYdUrtNsbm+XU/J/LROPBgYfcXut+w5o0DTBIg75ZGOLeX9
45
+ 65Ut5ltIXbZ2NBRGY24ImXoQqXNlHwhWPEBGZ19WL11nGkRAHbOwS1TOWKd92Nmx
46
+ HCzeqnLeUvUGnAw2OT7IY481rwSK8b5Hks+ZxO+NY1b/OpzP0Oq53tK4HKlOKtZV
47
+ smA7KAPQr5Io6gt4gujjW/nHzzr52SuQKq+B/hh3GPxcqJAaL9znfAt+FS6NYYRI
48
+ r+0OuCwF9LKWTJkNBdT2TVIwML28rHDHr0zkKAK0Xoq6U3Lbcq09Ujrfv+7zpVzs
49
+ iI4ddUgTbV9n2LCgbtHN2N1txReogcIBWa6/sMwKLcoZyKbDP4Xct2Y4O/rsiTxD
50
+ L63QNz7VYen/rWycC+qzqggj2e5Tobi7+4Yly6+gNKJD+rfHnwrssB7lZgxCswAU
51
+ R0bbxjM9S40=
52
+ =ntdv
53
+ -----END PGP PUBLIC KEY BLOCK-----
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "^4.4.1"
37
37
  },
38
- "version": "4.46.4"
38
+ "version": "4.46.6"
39
39
  }
@@ -652,9 +652,11 @@ data _null_;
652
652
  put ' ';
653
653
  put '%mend mfs_httpheader; ';
654
654
  /* WEBOUT END */
655
- put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO);';
655
+ put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO';
656
+ put ' ,maxobs=MAX';
657
+ put ');';
656
658
  put ' %ms_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing';
657
- put ' ,showmeta=&showmeta';
659
+ put ' ,showmeta=&showmeta,maxobs=&maxobs';
658
660
  put ' )';
659
661
  put '%mend;';
660
662
  run;
@@ -814,9 +814,11 @@ data _null_;
814
814
  put '%global __program _program;';
815
815
  put '%let _program=%sysfunc(coalescec(&__program,&_program));';
816
816
  put ' ';
817
- put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO);';
817
+ put '%macro webout(action,ds,dslabel=,fmt=,missing=NULL,showmeta=NO';
818
+ put ' ,maxobs=MAX';
819
+ put ');';
818
820
  put ' %mv_webout(&action,ds=&ds,dslabel=&dslabel,fmt=&fmt,missing=&missing';
819
- put ' ,showmeta=&showmeta';
821
+ put ' ,showmeta=&showmeta,maxobs=&maxobs';
820
822
  put ' )';
821
823
  put '%mend;';
822
824
  run;