@sasjs/core 4.23.1 → 4.23.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.
package/README.md CHANGED
@@ -18,7 +18,7 @@
18
18
  [dependency-url]:https://github.com/sasjs/core/blob/main/package.json
19
19
 
20
20
 
21
- Much quality. Many standards. The **Macro Core** library exists to save time and development effort! Herein ye shall find a veritable host of MIT-licenced, production quality SAS macros. These are a mix of tools, utilities, functions and code generators that are useful in the context of [Application Development](https://sasapps.io) on the SAS platform (eg https://datacontroller.io). [Contributions](https://github.com/sasjs/core/blob/main/CONTRIBUTING.md) are welcomed.
21
+ Much quality. Many standards. The **Macro Core** library exists to save time and development effort! Herein ye shall find a veritable host of MIT-licenced, production quality SAS macros. These are a mix of tools, utilities, functions and code generators that are useful in the context of [Application Development](https://sasapps.io) on the SAS platform (eg https://datacontroller.io). [Contributions](https://github.com/sasjs/core/blob/main/.github/CONTRIBUTING.md) are welcome.
22
22
 
23
23
  You can download and compile them all in just two lines of SAS code:
24
24
 
@@ -224,12 +224,13 @@ The following repositories are also worth checking out:
224
224
  * [chris-swenson/sasmacros](https://github.com/chris-swenson/sasmacros)
225
225
  * [greg-wotton/sas-programs](https://github.com/greg-wootton/sas-programs)
226
226
  * [KatjaGlassConsulting/SMILE-SmartSASMacros](https://github.com/KatjaGlassConsulting/SMILE-SmartSASMacros)
227
+ * [rogerjdeangelis](https://github.com/rogerjdeangelis)
227
228
  * [scottbass/sas](https://github.com/scottbass/SAS)
228
229
  * [yabwon/sas_packages](https://github.com/yabwon/SAS_PACKAGES)
229
230
 
230
231
  ## Contributors ✨
231
232
  <!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
232
- [![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors-)
233
+ [![All Contributors](https://img.shields.io/badge/all_contributors-12-orange.svg?style=flat-square)](#contributors-)
233
234
  <!-- ALL-CONTRIBUTORS-BADGE:END -->
234
235
  Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
235
236
 
@@ -251,6 +252,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
251
252
  <td align="center"><a href="https://github.com/VladislavParhomchik"><img src="https://avatars.githubusercontent.com/u/83717836?v=4?s=100" width="100px;" alt=""/><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>
252
253
  <td align="center"><a href="https://github.com/vznesh"><img src="https://avatars.githubusercontent.com/u/28916792?v=4?s=100" width="100px;" alt=""/><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>
253
254
  <td align="center"><a href="https://github.com/yabwon"><img src="https://avatars.githubusercontent.com/u/9314894?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Bart Jablonski</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=yabwon" title="Code">💻</a></td>
255
+ <td align="center"><a href="https://bandism.net/"><img src="https://avatars.githubusercontent.com/u/22633385?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ikko Ashimine</b></sub></a><br /><a href="https://github.com/sasjs/core/commits?author=eltociear" title="Code">💻</a></td>
254
256
  </tr>
255
257
  </table>
256
258
 
@@ -40,6 +40,22 @@
40
40
  %let lib=%upcase(&lib);
41
41
  %let ds=%upcase(&ds);
42
42
 
43
+ /**
44
+ * Cater for environments where sashelp.vcncolu is not available
45
+ */
46
+ %if %sysfunc(exist(sashelp.vcncolu,view))=0 %then %do;
47
+ proc sql;
48
+ create table &outds(
49
+ libref char(8)
50
+ ,TABLE_NAME char(32)
51
+ ,constraint_type char(8) label='Constraint Type'
52
+ ,constraint_name char(32) label='Constraint Name'
53
+ ,column_name char(32) label='Column'
54
+ ,constraint_order num
55
+ );
56
+ %return;
57
+ %end;
58
+
43
59
  /**
44
60
  * Neither dictionary tables nor sashelp provides a constraint order column,
45
61
  * however they DO arrive in the correct order. So, create the col.
@@ -14,8 +14,8 @@ proc sql;
14
14
  create table &libds(
15
15
  FMTNAME char(32) label='Format name'
16
16
  /*
17
- to accomodate larger START values, mp_loadformat.sas will need the
18
- SQL dependency removed (proc sql needs to accomodate 3 index values in
17
+ to accommodate larger START values, mp_loadformat.sas will need the
18
+ SQL dependency removed (proc sql needs to accommodate 3 index values in
19
19
  a 32767 ibufsize limit)
20
20
  */
21
21
  ,START char(10000) label='Starting value for format'
@@ -40,4 +40,4 @@ create table &libds(
40
40
  ,LANGUAGE char(8) label='Language for date strings'
41
41
  );
42
42
 
43
- %mend mddl_sas_cntlout;
43
+ %mend mddl_sas_cntlout;
package/main.dox ADDED
@@ -0,0 +1,95 @@
1
+
2
+ /** \dir .
3
+ * \brief Open Source Macro Library for Developers of the SAS Language. See: https://github.com/sasjs/core
4
+ * \details To use - add the subfolders to your `SASAUTOS` call path.
5
+ */
6
+
7
+
8
+ /*! \dir base
9
+ * \brief Regular Base SAS Macros
10
+ * \details These macros have the following attributes:
11
+
12
+ * OS independent
13
+ * Not metadata aware
14
+ * No X command
15
+ * Prefixes: _mf_, _mp_
16
+
17
+ Macros starting `mf_` are macro _functions_ and can be used in assignment
18
+ statements. Those starting `mp_` are macro _procedures_, which generate
19
+ SAS statements, and must therefore be applied accordingly.
20
+
21
+ */
22
+
23
+ /*! \dir fcmp
24
+ * \brief Macros for generating FCMP functions
25
+ * \details These macros have the following attributes:
26
+
27
+ * Macro name matches compiled function / subroutine name
28
+ * Prefixes: _mcf_, _mcs_
29
+
30
+ The macro part is just a wrapper for the underlying function / subroutine,
31
+ and has switches for including the proc fcmp / quit statements and whether
32
+ to insert the package into the CMPLIB option.
33
+
34
+ */
35
+
36
+ /*! \dir meta
37
+ * \brief Metadata Aware Macros
38
+ * \details These macros have the following attributes:
39
+
40
+ * OS independent
41
+ * Metadata aware
42
+ * No X command
43
+ * Prefixes: _mm_
44
+
45
+ */
46
+
47
+ /*! \dir metax
48
+ * \brief Metadata Aware Macros with X commmand
49
+ * \details These macros have the following attributes:
50
+
51
+ * OS independent
52
+ * Metadata aware
53
+ * X command
54
+ * Prefixes: _mmx_, _mmw_, _mmu_
55
+
56
+ */
57
+
58
+ /*! \dir server
59
+ * \brief Macros used with [sasjs/server](https://server.sasjs.io)
60
+ * \details These macros have the following attributes:
61
+
62
+ * OS independent
63
+ * sasjs/server aware
64
+ * No X command
65
+ * Prefixes: _ms_
66
+
67
+ */
68
+
69
+ /*! \dir tests
70
+ * \brief SASjs Tests
71
+ * \details These folders contain the macro tests. They are first compiled
72
+ and deployed (sasjs cbd) then executed (sasjs test).
73
+
74
+ */
75
+
76
+ /*! \dir viya
77
+ * \brief Viya macros
78
+ * \details These macros have the following attributes:
79
+
80
+ * OS independent
81
+ * No X command
82
+ * Prefixes: _mv_
83
+
84
+ */
85
+
86
+ /*! \dir lua
87
+ * \brief Lua macros
88
+ * \details These macros have the following attributes:
89
+
90
+ * OS independent
91
+ * Work as LUA functions (they are immediately executed/compiled)
92
+ * Auto-generated from the plain source `.lua` files in the same directory
93
+ * Prefixes: _ml_
94
+
95
+ */
package/package.json CHANGED
@@ -35,5 +35,5 @@
35
35
  "devDependencies": {
36
36
  "@sasjs/cli": "3.13.0"
37
37
  },
38
- "version": "4.23.1"
38
+ "version": "4.23.2"
39
39
  }