BREAKING CHANGE: Introduction of 4 new tables for capturing information related to catalogs and their objects. Migration script prepared and available in the DB folder (usual place)
38 lines
888 B
SAS
38 lines
888 B
SAS
/**
|
|
@file
|
|
@brief Testing mpe_refreshcatalogs macro
|
|
|
|
<h4> SAS Macros </h4>
|
|
@li mpe_refreshcatalogs.sas
|
|
@li mp_assert.sas
|
|
@li mp_assertscope.sas
|
|
@li mp_ds2md.sas
|
|
|
|
@author 4GL Apps Ltd
|
|
@copyright 4GL Apps Ltd. This code may only be used within Data Controller
|
|
and may not be re-distributed or re-sold without the express permission of
|
|
4GL Apps Ltd.
|
|
|
|
**/
|
|
|
|
%mp_assertscope(SNAPSHOT)
|
|
%mpe_refreshcatalogs(FMTONLY)
|
|
%mp_assertscope(COMPARE,
|
|
desc=Checking macro variables against previous snapshot
|
|
)
|
|
|
|
/* make sure that the process picks up the catalog */
|
|
proc sql noprint;
|
|
create table work.test1 as
|
|
select *
|
|
from &mpelib..mpe_datacatalog_cats(where=(&dc_dttmtfmt. lt tx_to))
|
|
where libref="FMTONLY";
|
|
%let test1=0;
|
|
select count(*) into: test1 from work.test1;
|
|
|
|
%mp_assert(
|
|
iftrue=(&test1>0),
|
|
desc=Checking fmtonly.dcfmts was picked up
|
|
)
|
|
|
|
%mp_ds2md(work.test1) |