Several CDISC procedure
statements enable you to specify metadata attributes either directly
in the CDISC procedure statement or stored in a SAS data set that
you reference in the DATA= argument.
The DATA= argument enables
you to use the same execution code for all operations. It also enables
you to change the metadata and data content by redirecting the LIBNAME
statement specifications to different locations, perhaps on a study
basis.
Here is an example of
an ODM statement that specifies metadata attributes as part of the
statement syntax:
odm odmversion="1.2"
fileoid="000-00-0000"
filetype=SNAPSHOT
description="Adverse events from the CTChicago file";
The following example
references those same metadata attributes stored in a SAS data set:
odm data=current.odm;
The SAS DATA step code
shows how Current.ODM, which contains the metadata attributes, is
created:
data Current.Odm;
odmversion="1.2";
fileoid="000-00-0000";
filetype="SNAPSHOT";
description="Adverse events from the CTChicago file";
run;
The following example
illustrates how the same PROC CDISC code can be used to export data
for many studies:
libname Metadata 'c:\your-meta-library';
libname Clindata 'c:\your-data-library';
filename Xmlout 'c:\your-output\AE.xml';
proc cdisc model=odm write=Xmlout;
odm data=Metadata.Odm;
study data=Metadata.Study;
globalvariables data=Metadata.Globals;
basicdefinitions data=Metadata.Basic;
metadataversion data=Metadata.Metadata;
presentation data=Metadata.Present;
user data=Metadata.Users;
location data=Metadata.Location;
signature data=Metadata.Signature;
clinicaldata data=Clindata.AE;
run;