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;