diff --git a/sas/mocks/sasjs/services/admin/makedata.js b/sas/mocks/sasjs/services/admin/makedata.js index af40c92..6ecafc6 100644 --- a/sas/mocks/sasjs/services/admin/makedata.js +++ b/sas/mocks/sasjs/services/admin/makedata.js @@ -1159,6 +1159,26 @@ const tables = { selectbox_value: 'FORMULA', selectbox_order: 1, ver_to_dttm: 127490111999 + }, + { + selectbox_rk: 73, + ver_from_dttm: 0, + select_lib: dcLibref, + select_ds: 'MPE_DERIVED', + base_column: 'VAR_TYPE', + selectbox_value: 'C', + selectbox_order: 1, + ver_to_dttm: 127490111999 + }, + { + selectbox_rk: 74, + ver_from_dttm: 0, + select_lib: dcLibref, + select_ds: 'MPE_DERIVED', + base_column: 'VAR_TYPE', + selectbox_value: 'N', + selectbox_order: 2, + ver_to_dttm: 127490111999 } ], MPE_SUBMIT: [], @@ -1371,6 +1391,19 @@ const tables = { 'RLS_SCOPE RLS_GROUP RLS_LIBREF RLS_TABLE RLS_GROUP_LOGIC RLS_SUBGROUP_LOGIC RLS_SUBGROUP_ID RLS_VARIABLE_NM RLS_OPERATOR_NM RLS_RAW_VALUE', post_edit_hook: 'services/hooks/mpe_row_level_security_postedit' }, + { + tx_from: 0, + tx_to: 127490111999, + libref: dcLibref, + dsn: 'MPE_DERIVED', + num_of_approvals_required: 1, + loadtype: 'TXTEMPORAL', + buskey: 'LIBREF DSN VAR_NM', + notes: 'Derived (computed) variables for the EDIT screen', + var_txfrom: 'TX_FROM', + var_txto: 'TX_TO', + post_edit_hook: 'services/hooks/mpe_derived_postedit' + }, { tx_from: 0, tx_to: 127490111999, @@ -2002,6 +2035,196 @@ const tables = { rule_value: 'services/validations/mpe_x_test.some_num', rule_active: 1, tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'LIBREF', + rule_type: 'NOTNULL', + rule_value: ' ', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'LIBREF', + rule_type: 'CASE', + rule_value: 'UPCASE', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'DSN', + rule_type: 'NOTNULL', + rule_value: ' ', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'DSN', + rule_type: 'CASE', + rule_value: 'UPCASE', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_NM', + rule_type: 'NOTNULL', + rule_value: ' ', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_NM', + rule_type: 'CASE', + rule_value: 'UPCASE', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_NM', + rule_type: 'HARDREGEX', + rule_value: '^[A-Za-z_][A-Za-z0-9_]*$', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_DEPS', + rule_type: 'CASE', + rule_value: 'UPCASE', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_DEPS', + rule_type: 'HARDREGEX', + rule_value: '^[A-Za-z0-9_ ]*$', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_TYPE', + rule_type: 'NOTNULL', + rule_value: ' ', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_TYPE', + rule_type: 'CASE', + rule_value: 'UPCASE', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_TYPE', + rule_type: 'HARDSELECT', + rule_value: ' ', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_LEN', + rule_type: 'NOTNULL', + rule_value: ' ', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_LEN', + rule_type: 'MINVAL', + rule_value: '1', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_LEN', + rule_type: 'MAXVAL', + rule_value: '32767', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_FMT', + rule_type: 'CASE', + rule_value: 'UPCASE', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_FMT', + rule_type: 'HARDREGEX', + rule_value: '^(\$?[A-Za-z][A-Za-z0-9_]*(\.[0-9]+)?\.?|\$?[0-9]+(\.[0-9]+)?\.?)?$', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_LOGIC', + rule_type: 'NOTNULL', + rule_value: ' ', + rule_active: 1, + tx_to: 127490111999 + }, + { + tx_from: 0, + base_lib: dcLibref, + base_ds: 'MPE_DERIVED', + base_col: 'VAR_LOGIC', + rule_type: 'HARDREGEX', + rule_value: '^[^;&%]*$', + rule_active: 1, + tx_to: 127490111999 } ], MPE_X_TEST: [