fix: refactor mf_wordsinstr1butnotstr2 and added a wide table to test suite
This commit is contained in:
1 parent
f73f5e47ac
commit
be94c68f35
3 files changed
+43
-11
No files matched your search
Generated
+4
-8
@@ -7,7 +7,7 @@
|
||||
"name": "dc-sas",
|
||||
"dependencies": {
|
||||
"@sasjs/cli": "4.18.0",
|
||||
"@sasjs/core": "4.68.0"
|
||||
"@sasjs/core": "4.68.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@asamuzakjp/css-color": {
|
||||
@@ -124,7 +124,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
},
|
||||
@@ -147,7 +146,6 @@
|
||||
}
|
||||
],
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"engines": {
|
||||
"node": ">=18"
|
||||
}
|
||||
@@ -323,9 +321,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@sasjs/core": {
|
||||
"version": "4.68.0",
|
||||
"resolved": "https://registry.npmjs.org/@sasjs/core/-/core-4.68.0.tgz",
|
||||
"integrity": "sha512-1npiUoz3cjRl7Xh/NLMHaRD1AkfPWpP0u3KBtuPshoEndol4QL/YKbOUTNILl4U5lYZtRvCq7yuEVdAX/YINVg==",
|
||||
"version": "4.68.1",
|
||||
"resolved": "https://registry.npmjs.org/@sasjs/core/-/core-4.68.1.tgz",
|
||||
"integrity": "sha512-BjoOzV7h7guCShW4JsFHvB1NNLCKHhPI5708OtEk29itQbgVCMRlEXKFRbnMiuNklktDQDi8dR4XZZ0aK7/4Wg==",
|
||||
"license": "MIT"
|
||||
},
|
||||
"node_modules/@sasjs/lint": {
|
||||
@@ -472,7 +470,6 @@
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.16.0.tgz",
|
||||
"integrity": "sha512-6hp5CwvTPlN2A31g5dxnwAX0orzM7pmCRDLnZSX772mv8WDqICwFjowHuPs04Mc8deIld1+ejhtaMn5vp6b+1w==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.16.0",
|
||||
"form-data": "^4.0.5",
|
||||
@@ -2162,7 +2159,6 @@
|
||||
"resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.1.3.tgz",
|
||||
"integrity": "sha512-aX/y5pVRkfRnfmuX+OdbSdXvPe6ieKX/G2s7e98f4poJHnqH3281gDPm/metm6E/WRamfx7WC4HUqkWHfQHprw==",
|
||||
"license": "BSD-3-Clause",
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"psl": "^1.1.33",
|
||||
"punycode": "^2.1.1",
|
||||
|
||||
+1
-1
@@ -29,6 +29,6 @@
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"@sasjs/cli": "4.18.0",
|
||||
"@sasjs/core": "4.68.0"
|
||||
"@sasjs/core": "4.68.1"
|
||||
}
|
||||
}
|
||||
@@ -64,6 +64,38 @@ data dctest.mpe_x_test;
|
||||
set &DC_LIBREF..mpe_x_test;
|
||||
run;
|
||||
|
||||
data dctest.wideboy;
|
||||
/* Create 500 character variables and 500 numeric variables */
|
||||
array char_fields[500] $20 char1-char500;
|
||||
array num_fields[500] num1-num500;
|
||||
length alphabet $62;
|
||||
alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
||||
|
||||
/* Set a seed for reproducible random data */
|
||||
call streaminit(12345);
|
||||
|
||||
do row_id = 1 to 1000;
|
||||
|
||||
/* Generate random 20-character alphanumeric values */
|
||||
do field = 1 to dim(char_fields);
|
||||
do position = 1 to 20;
|
||||
substr(char_fields[field], position, 1) =
|
||||
substr(alphabet,
|
||||
floor(rand('uniform') * length(alphabet)) + 1,
|
||||
1
|
||||
);
|
||||
end;
|
||||
end;
|
||||
/* Generate random numeric values from a normal distribution */
|
||||
do field = 1 to dim(num_fields);
|
||||
num_fields[field] = ceil(rand('normal', 0, 1));
|
||||
end;
|
||||
output;
|
||||
end;
|
||||
stop;
|
||||
run;
|
||||
|
||||
|
||||
/* test library with only one format catalog */
|
||||
%mf_mkdir(&testloc/fmtonly)
|
||||
libname fmtonly "&testloc/fmtonly";
|
||||
@@ -90,8 +122,7 @@ proc format library=dctest.dcfmts;
|
||||
invalue indays (default=13) other=42;
|
||||
run;
|
||||
proc sql;
|
||||
delete from &DC_LIBREF..mpe_tables
|
||||
where libref="DCTEST" and dsn='DCFMTS-FC';
|
||||
delete from &DC_LIBREF..mpe_tables where libref="DCTEST";
|
||||
data work.append;
|
||||
if 0 then set &DC_LIBREF..mpe_tables;
|
||||
tx_from=0;
|
||||
@@ -102,6 +133,11 @@ data work.append;
|
||||
loadtype='FORMAT_CAT';
|
||||
num_of_approvals_required=1;
|
||||
output;
|
||||
dsn='WIDEBOY';
|
||||
buskey='ROW_ID CHAR1 NUM1';
|
||||
loadtype='UPDATE';
|
||||
output;
|
||||
stop;
|
||||
run;
|
||||
proc append base=&dc_libref..mpe_tables data=work.append;
|
||||
run;
|
||||
|
||||
Reference in new issue
Block a user