@sasjs/core 3.2.0 → 3.2.1
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_makedata.sas +6 -2
- package/package.json +1 -1
package/base/mp_makedata.sas
CHANGED
|
@@ -33,11 +33,15 @@
|
|
|
33
33
|
<h4> SAS Macros </h4>
|
|
34
34
|
@li mf_getuniquename.sas
|
|
35
35
|
@li mf_getvarlen.sas
|
|
36
|
+
@li mf_getvarlist.sas
|
|
36
37
|
@li mf_islibds.sas
|
|
37
38
|
@li mf_nobs.sas
|
|
38
39
|
@li mp_getcols.sas
|
|
39
40
|
@li mp_getpk.sas
|
|
40
41
|
|
|
42
|
+
<h4> Related Macros </h4>
|
|
43
|
+
@li mp_makedata.test.sas
|
|
44
|
+
|
|
41
45
|
@version 9.2
|
|
42
46
|
@author Allan Bowe
|
|
43
47
|
|
|
@@ -69,7 +73,7 @@
|
|
|
69
73
|
%mp_getpk(&lib,ds=&ds,outds=&ds1)
|
|
70
74
|
|
|
71
75
|
proc sql noprint;
|
|
72
|
-
select pk_fields into: pk_fields from &ds1;
|
|
76
|
+
select coalescec(pk_fields,'_all_') into: pk_fields from &ds1;
|
|
73
77
|
|
|
74
78
|
data &ds2;
|
|
75
79
|
if 0 then set &libds;
|
|
@@ -78,7 +82,7 @@ data &ds2;
|
|
|
78
82
|
%if &charvars ^= %then %do i=1 %to %sysfunc(countw(&charvars));
|
|
79
83
|
%let col=%scan(&charvars,&i);
|
|
80
84
|
/* create random value based on observation number and colum length */
|
|
81
|
-
&col=
|
|
85
|
+
&col=repeat(put(md5(cats(_n_)),$hex32.),%mf_getvarlen(&libds,&col)/32);
|
|
82
86
|
%end;
|
|
83
87
|
|
|
84
88
|
%let numvars=%mf_getvarlist(&libds,typefilter=N);
|
package/package.json
CHANGED