@sasjs/core 4.45.10 → 4.45.12
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/.sasjslint +1 -0
- package/README.md +20 -17
- package/base/mf_existvar.sas +8 -4
- package/base/mp_assert.sas +1 -1
- package/base/mp_assertcols.sas +1 -1
- package/base/mp_lockanytable.sas +5 -2
- package/package.json +1 -1
package/.sasjslint
CHANGED
package/README.md
CHANGED
|
@@ -246,7 +246,7 @@ The following repositories are also worth checking out:
|
|
|
246
246
|
|
|
247
247
|
## Contributors ✨
|
|
248
248
|
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
|
|
249
|
-
[](#contributors-)
|
|
250
250
|
<!-- ALL-CONTRIBUTORS-BADGE:END -->
|
|
251
251
|
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
252
252
|
|
|
@@ -254,22 +254,25 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
|
|
|
254
254
|
<!-- prettier-ignore-start -->
|
|
255
255
|
<!-- markdownlint-disable -->
|
|
256
256
|
<table>
|
|
257
|
-
<
|
|
258
|
-
<
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
<
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
257
|
+
<tbody>
|
|
258
|
+
<tr>
|
|
259
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/allanbowe"><img src="https://avatars.githubusercontent.com/u/4420615?v=4?s=100" width="100px;" alt="Allan Bowe"/><br /><sub><b>Allan Bowe</b></sub></a><br /><a href="#business-allanbowe" title="Business development">💼</a> <a href="https://github.com/sasjs/core/commits?author=allanbowe" title="Code">💻</a> <a href="#content-allanbowe" title="Content">🖋</a> <a href="https://github.com/sasjs/core/commits?author=allanbowe" title="Documentation">📖</a> <a href="#infra-allanbowe" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#maintenance-allanbowe" title="Maintenance">🚧</a> <a href="#mentoring-allanbowe" title="Mentoring">🧑🏫</a> <a href="#question-allanbowe" title="Answering Questions">💬</a> <a href="https://github.com/sasjs/core/pulls?q=is%3Apr+reviewed-by%3Aallanbowe" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/sasjs/core/commits?author=allanbowe" title="Tests">⚠️</a></td>
|
|
260
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/rafgag"><img src="https://avatars.githubusercontent.com/u/69139928?v=4?s=100" width="100px;" alt="rafgag"/><br /><sub><b>rafgag</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=rafgag" title="Code">💻</a></td>
|
|
261
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/tmoody"><img src="https://avatars.githubusercontent.com/u/79837106?v=4?s=100" width="100px;" alt="Trevor Moody"/><br /><sub><b>Trevor Moody</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=tmoody" title="Code">💻</a></td>
|
|
262
|
+
<td align="center" valign="top" width="14.28%"><a href="https://krishna-acondy.io/"><img src="https://avatars.githubusercontent.com/u/2980428?v=4?s=100" width="100px;" alt="Krishna Acondy"/><br /><sub><b>Krishna Acondy</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=krishna-acondy" title="Code">💻</a> <a href="#infra-krishna-acondy" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#blog-krishna-acondy" title="Blogposts">📝</a> <a href="#content-krishna-acondy" title="Content">🖋</a> <a href="#ideas-krishna-acondy" title="Ideas, Planning, & Feedback">🤔</a> <a href="#video-krishna-acondy" title="Videos">📹</a></td>
|
|
263
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/saadjutt01"><img src="https://avatars.githubusercontent.com/u/8914650?v=4?s=100" width="100px;" alt="Muhammad Saad "/><br /><sub><b>Muhammad Saad </b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=saadjutt01" title="Code">💻</a> <a href="#ideas-saadjutt01" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
264
|
+
<td align="center" valign="top" width="14.28%"><a href="https://www.erudicat.com/"><img src="https://avatars.githubusercontent.com/u/25773492?v=4?s=100" width="100px;" alt="Yury Shkoda"/><br /><sub><b>Yury Shkoda</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=YuryShkoda" title="Code">💻</a> <a href="#infra-YuryShkoda" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#video-YuryShkoda" title="Videos">📹</a></td>
|
|
265
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/medjedovicm"><img src="https://avatars.githubusercontent.com/u/18329105?v=4?s=100" width="100px;" alt="Mihajlo Medjedovic"/><br /><sub><b>Mihajlo Medjedovic</b></sub></a><br /><a href="#infra-medjedovicm" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
|
|
266
|
+
</tr>
|
|
267
|
+
<tr>
|
|
268
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/kkchandok"><img src="https://avatars.githubusercontent.com/u/46090627?v=4?s=100" width="100px;" alt="kkchandok"/><br /><sub><b>kkchandok</b></sub></a><br /><a href="#ideas-kkchandok" title="Ideas, Planning, & Feedback">🤔</a></td>
|
|
269
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/VladislavParhomchik"><img src="https://avatars.githubusercontent.com/u/83717836?v=4?s=100" width="100px;" alt="Vladislav Parhomchik"/><br /><sub><b>Vladislav Parhomchik</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=VladislavParhomchik" title="Tests">⚠️</a> <a href="https://github.com/sasjs/core/pulls?q=is%3Apr+reviewed-by%3AVladislavParhomchik" title="Reviewed Pull Requests">👀</a></td>
|
|
270
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/vznesh"><img src="https://avatars.githubusercontent.com/u/28916792?v=4?s=100" width="100px;" alt="Vignesh T."/><br /><sub><b>Vignesh T.</b></sub></a><br /><a href="https://github.com/sasjs/core/issues?q=author%3Avznesh" title="Bug reports">🐛</a></td>
|
|
271
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/yabwon"><img src="https://avatars.githubusercontent.com/u/9314894?v=4?s=100" width="100px;" alt="Bart Jablonski"/><br /><sub><b>Bart Jablonski</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=yabwon" title="Code">💻</a></td>
|
|
272
|
+
<td align="center" valign="top" width="14.28%"><a href="https://bandism.net/"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt="Ikko Ashimine"/><br /><sub><b>Ikko Ashimine</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=eltociear" title="Code">💻</a></td>
|
|
273
|
+
<td align="center" valign="top" width="14.28%"><a href="https://github.com/henrik-forsell"><img src="https://avatars.githubusercontent.com/u/109935936?v=4?s=100" width="100px;" alt="Henrik Forsell"/><br /><sub><b>Henrik Forsell</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=henrik-forsell" title="Documentation">📖</a></td>
|
|
274
|
+
</tr>
|
|
275
|
+
</tbody>
|
|
273
276
|
</table>
|
|
274
277
|
|
|
275
278
|
<!-- markdownlint-restore -->
|
package/base/mf_existvar.sas
CHANGED
|
@@ -25,13 +25,17 @@
|
|
|
25
25
|
%local dsid rc;
|
|
26
26
|
%let dsid=%sysfunc(open(&libds,is));
|
|
27
27
|
|
|
28
|
-
%if &dsid=0
|
|
28
|
+
%if &dsid=0 %then %do;
|
|
29
29
|
%put %sysfunc(sysmsg());
|
|
30
|
-
|
|
30
|
+
0
|
|
31
|
+
%end;
|
|
32
|
+
%else %if %length(&var)=0 %then %do;
|
|
33
|
+
0
|
|
34
|
+
%let rc=%sysfunc(close(&dsid));
|
|
31
35
|
%end;
|
|
32
36
|
%else %do;
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
%sysfunc(varnum(&dsid,&var))
|
|
38
|
+
%let rc=%sysfunc(close(&dsid));
|
|
35
39
|
%end;
|
|
36
40
|
|
|
37
41
|
%mend mf_existvar;
|
package/base/mp_assert.sas
CHANGED
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
results. If it does not exist, it will be created, with the following format:
|
|
23
23
|
|TEST_DESCRIPTION:$256|TEST_RESULT:$4|TEST_COMMENTS:$256|
|
|
24
24
|
|---|---|---|
|
|
25
|
-
|User Provided description|PASS|
|
|
25
|
+
|User Provided description|PASS|Dataset &inds contained ALL columns|
|
|
26
26
|
|
|
27
27
|
@version 9.2
|
|
28
28
|
@author Allan Bowe
|
package/base/mp_assertcols.sas
CHANGED
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
results. If it does not exist, it will be created, with the following format:
|
|
42
42
|
|TEST_DESCRIPTION:$256|TEST_RESULT:$4|TEST_COMMENTS:$256|
|
|
43
43
|
|---|---|---|
|
|
44
|
-
|User Provided description|PASS|
|
|
44
|
+
|User Provided description|PASS|Dataset &inds contained ALL columns|
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
<h4> Related Macros </h4>
|
package/base/mp_lockanytable.sas
CHANGED
|
@@ -167,7 +167,7 @@ run;
|
|
|
167
167
|
data _null_;
|
|
168
168
|
putlog 'NOTE-' / 'NOTE-';
|
|
169
169
|
putlog "NOTE- &sysmacroname: table locked, waiting "@;
|
|
170
|
-
putlog "%sysfunc(sleep(&
|
|
170
|
+
putlog "%sysfunc(sleep(&loop_secs)) seconds.. ";
|
|
171
171
|
putlog "NOTE- (iteration &x of &loops)";
|
|
172
172
|
putlog 'NOTE-' / 'NOTE-';
|
|
173
173
|
run;
|
|
@@ -200,7 +200,10 @@ run;
|
|
|
200
200
|
where LOCK_LIB ="&lib" and LOCK_DS="&ds";
|
|
201
201
|
quit;
|
|
202
202
|
%if &syscc>0 %then %put syscc=&syscc sqlrc=&sqlrc;
|
|
203
|
-
%if &
|
|
203
|
+
%if &sqlobs=0 %then %do;
|
|
204
|
+
%put %str(WAR)NING: &lib..&ds has never been locked!;
|
|
205
|
+
%end;
|
|
206
|
+
%else %if &status=LOCKED %then %do;
|
|
204
207
|
data _null_;
|
|
205
208
|
putlog "&sysmacroname: unlocking &lib..&ds:";
|
|
206
209
|
run;
|
package/package.json
CHANGED