!sasroot /../../SASClinicalStandardsToolkitSDTM312/1.4/sample/cdisc-sdtm-3.1.2/sascstdemodata/programs/validate_data.sas
/* There are several ways to define the study data and metadata locations. These include (but are not limited to): - Pre-allocation of libraries through some user-defined set-up mechanism - Definition within a user-defined driver program such as this one - Full explicit definition within a work sasreferences control data set - Use of a global macro variable referenced within each sasreferences file This driver program illustrates use of the last mechanism, setting the global macro variables studyRootPath and studyOutputPath, which are referenced within the sample study sasreferences data set path column. Note this example is dependent on the SAS version and installation folder structure. */ data _null_; select("&sysver"); when("9.1") do; call symput('studyRootPath','!sasroot/../SASClinicalStandardsToolkitSDTM312 /1.4/sample/cdisc-sdtm-3.1.2/sascstdemodata'); call symput('studyOutputPath','!sasroot/../SASClinicalStandardsToolkitSDTM312 /1.4/sample/cdisc-sdtm-3.1.2/sascstdemodata'); end; otherwise do; call symput('studyRootPath','!sasroot/../../SASClinicalStandardsToolkitSDTM312 /1.4/sample/cdisc-sdtm-3.1.2/sascstdemodata'); call symput('studyOutputPath','!sasroot/../../SASClinicalStandardsToolkitSDTM312 /1.4/sample/cdisc-sdtm-3.1.2/sascstdemodata'); end; end; run;
* Note the number of calls should match the unique studyOutputPath subdirectories in sasreferences *; %****let studyOutputPath=users/myname/mystudy; *<--- example user override *; %****csutil_createsubdir(_cstSubDir=results); *<--- example user override *;
* Set properties provided as part of the CST-FRAMEWORK standard. ; %cst_setstandardproperties( _cstStandard=CST-FRAMEWORK,_cstSubType=initialize); %cst_createds(_cstStandard=CST-FRAMEWORK, _cstType=control,_cstSubType=reference, _cstOutputDS=work.sasreferences);
Y
. Values from this single observation
are used to create the macro values for &_cstCTRoot and &_cstCTDescription.
You can override the version of the controlled terminology by setting
&_cstCTRoot to any directory. (This is shown in the commented
line.)
* Set Controlled Terminology version for this process *; %cst_getstandardsubtypes(_cstStandard=CDISC-TERMINOLOGY,_cstOutputDS=work._cstStdSubTypes); data _null_; set work._cstStdSubTypes (where=(standardversion="&_cstStandard" and isstandarddefault='Y')); call symputx('_cstCTRoot',cats(lowcase(standardversion),'/', lowcase(standardsubtypeversion))); call symputx('_cstCTDescription',description); run; %**let _cstCTRoot=cdisc-sdtm/201003; * <----- User can override CT version of interest *;
%cst_createds(_cstStandard=CST-FRAMEWORK, _cstType=control, _cstSubType=reference, _cstOutputDS=work.sasreferences);
&studyRootPath/control
and name to validation_control.sas7bdat
. In SAS 9.3, this translates to !sasroot/../../ SASClinicalStandardsToolkitSDTM312/1.4/sample/cdisc-sdtm-3.1.2/sascstdemodata/control/validation_control.sas7bdat
. For an explanation
of the purpose and content of each SASReferences file, see SASReferences File. For a fully
initialized SASReferences data set for SDTM validation, see Sample SASReferences File for CDISC SDTM Validation.%cstutil_processsetup();in the validate_data.sas driver reflects the acceptance of the macro parameter defaults listed above.
*********************************************************************; * Set global macro variables for the location of the sasreferences *; * file (overrides default properties initialized above *; *********************************************************************; %let _cstSASRefsName=&_cstSASReferencesName; %let _cstSASRefsLoc=&_cstSASReferencesLocation;
A summary metric of
unique check invocations. Example of a Validation Metrics Data Set does not itemize all eight checks.
|
|