Suppose that the SAS
Clinical Standards Toolkit 1.6 is currently installed and used. The
SAS Clinical Standards Toolkit 1.7
is released. You want the product updates for a standard version.
In the following steps, the CDISC SDTM standard is used as an example.
However, the steps apply to all other standard versions. You want
to set version 3.2 as the default version for the CDISC SDTM standard.
The SAS Clinical Standards Toolkit installation process does not do
this automatically because you might have made updates to the SAS
Clinical Standards Toolkit 1.6 code base or metadata that you want
to preserve. Or, you might want to test the SAS Clinical Standards
Toolkit 1.7
CDISC SDTM 3.2 implementation before declaring it the new default
version.
Step 1: Confirm that
multiple versions of the standard are available. Confirm that registration
of a new version is needed.
-
Navigate to the global
standards library Standards directory global standards library directory/standards
.
-
Confirm that multiple
libraries exist for the same standard version.
In this example, two
subdirectories exist for CDISC SDTM 3.1.2.
The cdisc-sdtm-3.1.2–1.6
directory
contains files installed with the SAS Clinical Standards Toolkit 1.6.
The cdisc-sdtm-3.1.2-1.7
directory
contains files installed with the SAS Clinical Standards Toolkit 1.7.
-
Confirm which revision
of the standard version is currently in use.
-
Assign a LIBNAME to the metadata
subdirectory
in the global standards library.
-
Open the Standards data set in
the library, and confirm that the older version is the one being used.
The following display
shows that the registered version CDISC SDTM 3.1.2.-1.6 indicates
that it is the original version that was shipped with the SAS Clinical
Standards Toolkit 1.6:
CDISC SDTM 3.1.2.-1.6 is defined as the default version
for the CDISC SDTM standard.
Step 2: Register the
updated CDISC SDTM 3.1.2 metadata in the global standards library
to use the SAS Clinical Standards Toolkit 1.7.
-
Navigate to the Standards
directory in the global standards library. Go to the programs
directory
of the revision of the standard version that needs to be registered.
For example, go to global standards library directory/standards/cdisc-sdtm-3.1.2-1.7/programs
.
-
Start a SAS session.
Make sure that the current directory is the programs
directory.
-
To unregister the currently
installed revision and version, submit this code:
%cstutil_setcstgroot;
/*
Set the framework properties used for the uninstall
*/
%cst_setstandardproperties(
_cstStandard=CST-FRAMEWORK,
_cstSubType=initialize
);
/*
If the version to be replaced is the default, you must
make another version the default.
In this case, this is the desired final outcome anyway.
*/
%cst_setstandardversiondefault(
_cstStandard=CDISC-SDTM
,_cstStandardVersion=3.1.3
);
/*
Unregister the standard
*/
%cst_unregisterstandard(
_cstStandard=CDISC-SDTM
,_cstStandardVersion=3.1.2
);
Note: The %CST_SETSTANDARDVERSIONDEFAULT
macro call needs to be used only if the version being updated is the
default version of the standard.
-
Check the Results data
set. By default, the data set is work._cstResults. The final line
in the data set should report that the standard version is no longer
registered as a standard.
-
Open and submit the
registerstandard.sas file from the programs
directory
into the Program Editor.
-
Confirm that the new
revision was registered.
-
Assign a LIBNAME to the metadata
subdirectory
in the global standards library.
-
Open the Standards data set in
the library, and confirm that the newer revision is the one being
used.
The following display
shows that the CDISC SDTM 3.1.2 standard is now reregistered, the
product revision in use is 1.7,
and CDISC SDTM 3.1.3 is registered as the default standard: