The %CSTUTILDELETEDSCOLUMN
macro deletes an existing column from a data set.
In this example, the
macro deletes the comment2 column (which was created in the previous
example) in the newstudy.source_values data set. The _cstMustBeEmpty
parameter is set to N
, which specifies
that the macro should delete the column if values are present.
*********************
* Delete a column *
*********************;
%cstutildeletedscolumn(
_cstStd=CDISC-SDTM,
_cstStdVer=3.1.3,
_cstDS=newstudy.source_values,
_cstColumn=comment2,
_cstMustBeEmpty=n,
_cstTestMode=n);