17%mp_coretable(LOCKTABLE,libds=work.controller)
19%mp_assertcols(work.controller,
20 cols=lock_status_cd lock_lib lock_ds lock_user_nm lock_ref lock_pid
21 lock_start_dttm lock_end_dttm,
23 desc=check all control columns exist
28libname tmp
"%sysfunc(pathname(work))/tmp";
33%mp_lockanytable(LOCK,lib=tmp,ds=sometable,ref=This Ref, ctl_ds=work.controller)
38%mp_assertcolvals(work.controller.lock_ds,
39 checkvals=work.checkds1.checkval,
40 desc=table is captured in lock,
47%mp_assertcolvals(work.controller.lock_status_cd,
48 checkvals=work.checkds2.checkval,
49 desc=code is captured in lock,
56%mp_lockanytable(UNLOCK,lib=tmp,ds=sometable,ref=bye, ctl_ds=work.controller)
61%mp_assertcolvals(work.controller.lock_status_cd,
62 checkvals=work.checkds3.checkval,
63 desc=Ref is captured in unlock,
69%mp_lockanytable(UNLOCK,lib=no,ds=doesnotexist,ref=bye, ctl_ds=work.controller)
73 desc=Ability to unlock a table that was never locked,
74 outds=work.test_results
78%mp_assertscope(SNAPSHOT)
79%mp_lockanytable(LOCK,lib=tmp,ds=testscope,ref=This Ref, ctl_ds=work.controller)
80%mp_assertscope(COMPARE)