I'm having an odd issue when generating metadata for the 2.1 definexml. I've been using the generate from saslib sample program and the settings are:
%define_createsrcmetafromsaslib(
_cstTrgStandard=&_cstTrgStandard,
_cstTrgStandardVersion=&_cstTrgStandardVersion,
_cstLang=en,
_cstUseRefLib=Y,
_cstKeepAllCodeLists=N
);
%define_createsrcmetafromsaslib(
_cstSASDataLib=srcdata,
_cstStudyMetadata=work.studymetadata,
_cstTrgStandard=&_cstTrgStandard,
_cstTrgStandardVersion=&_cstTrgStandardVersion,
_cstTrgStudyDS=trgmeta.source_study,
_cstTrgTableDS=trgmeta.source_tables,
_cstTrgColumnDS=trgmeta.source_columns,
_cstTrgCodeListDS=trgmeta.source_codelists,
_cstTrgValueDS=trgmeta.source_values,
_cstTrgDocumentDS=trgmeta.source_documents,
_cstTrgAnalysisResultDS=trgmeta.source_analysisresults,
_cstLang=en,
_cstUseRefLib=Y,
_cstRefTableDS=refmeta.reference_tables,
_cstRefColumnDS=refmeta.reference_columns,
_cstClassTableDS=refmeta.class_tables,
_cstClassColumnDS=refmeta.class_columns,
_cstKeepAllCodeLists=Y,
_cstFormatCatalogs=cstfmt.formats ncifmt.cterms,
_cstNCICTerms=ncifmt.cterms
);
The issue I get is the metadata source_codelist file shows every possible term for every variable, when I only want the terminology for the terms used within the study data. Everything else seems like it is working correctly and when I change _cstKeepAllCodeLists=N to _cstKeepAllCodeLists=Y, it does what I'd expect it to do and show every term regardless of what is in the data. The User Guide has not done much to help me here and I'm not sure what I need to change in order to get this to work the way I want it to. Any advice here would be appreciated.