32%macro mp_deleteconstraints(inds=mp_getconstraints
33 ,outds=mp_deleteconstraints
37proc sort data=&inds out=&outds;
38 by libref table_name constraint_name;
43 by libref table_name constraint_name;
44 length drop_statement $500;
45 if _n_=1 and
"&execute"=
"YES" then call execute(
'proc sql;');
46 if first.constraint_name then
do;
47 drop_statement=catx(
" ",
"alter table",libref,
".",table_name
48 ,
"drop constraint",constraint_name,
";");
50 if "&execute"=
"YES" then call execute(drop_statement);
54%mend mp_deleteconstraints;