1
0
mirror of https://github.com/sasjs/core.git synced 2026-01-16 21:10:05 +00:00

feat: adding mddl_xx series of macros (and tests). Closes #166

This commit is contained in:
munja
2022-02-07 14:14:25 +01:00
parent eb2ccfbbca
commit 3e7b15c7db
19 changed files with 509 additions and 245 deletions

25
ddl/mddl_dc_locktable.sas Normal file
View File

@@ -0,0 +1,25 @@
/**
@file
@brief Locktable DDL
@details For "locking" tables prior to multipass loads. Used by
mp_lockanytable.sas
**/
%macro mddl_dc_locktable(libds=WORK.LOCKTABLE);
proc sql;
create table &libds(
lock_lib char(8),
lock_ds char(32),
lock_status_cd char(10) not null,
lock_user_nm char(100) not null ,
lock_ref char(200),
lock_pid char(10),
lock_start_dttm num format=E8601DT26.6,
lock_end_dttm num format=E8601DT26.6,
constraint pk_mp_lockanytable primary key(lock_lib,lock_ds)
);
%mend mddl_dc_locktable;