The following SAS program
lists the attributes of a CDISC ODM SAS data set using the ODM statement
LONGNAMES=YES processing option:
-
The FILENAME statement
assigns the file reference Xmlinp to the physical location of the
input XML document (complete pathname, filename, and file extension)
to be imported.
-
The PROC CDISC statement
specifies the following:
-
-
File reference Xmlinp, which references
the physical location of the input XML document to be imported.
-
The ODM statement specifies
CDISC ODM version 1.2 and the LONGNAMES=YES processing option, which
determines the following:
-
ODM name attributes are converted
to SAS names. Names can be a maximum of 32 characters in length.
-
The SAS data set name is captured
from the Name= attribute in the ODM ItemGroupDef element. SAS variable
names are captured from the Name= attribute in the ODM ItemDef elements.
SAS format names are captured from the Name= attribute in the ODMCodeList
elements.
-
The CONTENTS statement
writes the contents of the CDISC ODM SAS data set in the SAS log.
The CONTENTS statement must specify the name that is in the Name=
attribute in the ODM ItemGroupDef element.
filename Xmlinp 'C:\XML\AE.xml'; 1
proc cdisc model=odm 2 read=Xmlinp;
odm odmversion="1.2" longnames=yes; 3
contents table="Adverse_Events"; 4
run;
Contents of CDISC ODM SAS Data Set with LONGNAMES=YES
Contents of CDISC ODM Table
Name Adverse_Events
Libref XMLINP
ODM Version 1.2
AsOfDateTime 2005-05-18T14:01:41
CreationDateTime 2005-05-18T14:01:41
SourceSystem SAS 9.1
SourceSystemVersion 9.01.01M3D05172005
Engine/Host Dependent Information
OID IG.AE
Name Adverse Events
SASDatasetName AE
IsReferenceData
Repeating Yes
Domain AE
Origin
Role
Purpose
Comment Some adverse events from this trial
List of Variables and Attributes
# Variable Datatype Length SigDig Format Label
1 Actions_taken__other string 1
2 Actions_taken_re_study_drug string 1
3 Outcome string 1
4 Relationship_to_study_drug string 1
5 Severity string 1
6 Derived_Stop_Date date DATE
7 Stop_Year___Enter_Four_Digit_Yea integer 4
8 Stop_Day___Enter_Two_Digits_01_3 integer 2
9 Stop_Month___Enter_Two_Digits_01 integer 2
10 Derived_Start_Date date DATE
11 Start_Year___Enter_Four_Digit_Ye integer 4
12 Start_Day___Enter_Two_Digits_01_ integer 2
13 Start_Month___Enter_Two_Digits_0 integer 2
14 Conmed_Indication string 100
15 Line_Number integer 2
16 Record_status__5_levels__interna string 1
17 Country string 4
18 Protocol_Number string 15
19 Therapeutic_Area string 4