Hello,
I'm trying to install the open source CST to use in SAS EG. Following the install instructions on https://github.com/sassoftware/clinical-standards-toolkit,
I've installed Apache ANT and downloaded the v1.7.5 release package. In the config.properties file (C:\Program Files\SASHome\SASStudioSingleUser\3.8\war\config), I've added the following:
#---SAS Clinical Standards toolkit
SET CSTHOME C:Users\Y.D.Dang_pc\Documents\SAS CST\cstFrameworkLibrary
CSTGLOBALLIB C:Users\Y.D.Dang_pc\Documents\SAS CST\cstGlobalLibrary
CSTSAMPLELIB C:Users\Y.D.Dang_pc\Documents\SAS CST\cstSampleLibrary
insert sasautos '!CSTHOME/macros'
JREOPTIONS (-Dsas.app.class.dirs=!CSTHOME/jar)
SET CLASSPATH !CSTHOME/jar
I'm currently however unable to run any of the programs. E.g. if I run cstvalidate I'm getting the following message:
WARNING: Apparent symbolic reference _CST_RC not resolved.
ERROR: A character operand was found in the %EVAL function or %IF condition where a numeric operand is required. The condition was:
&_cst_rc
ERROR: The macro CSTVALIDATE will stop executing.
Thanks,
Yen
You need to initialize the global macro variables before invoking these macros.
/*
%include "C:\cstFrameworkLibrary\macros\*.sas";
*/
/*
initialize the global macro variables needed by the framework
*/
%cst_setstandardproperties(
_cstStandard=CST-FRAMEWORK
,_cstSubType=initialize
);
/*
initialize the global macro variables needed by CDISC SDTM
*/
%cst_setstandardproperties(
_cstStandard=CDISC-SDTM
,_cstSubType=initialize
);
%cst_getstandardsasreferences(
_cstStandard=CST-FRAMEWORK
,_cstOutputDS=sasrefs
);
/*
Create the empty SASReferences data set used in the next
step
*/
%cst_createdsfromtemplate(
_cstStandard=CST-FRAMEWORK,
_cstType=control,
_cstSubType=reference,
_cstOutputDS=work.sasrefs
);
/*
Create the table shells for CDISC SDTM 3.1.3 in the work library
*/
%cst_createtablesfordatastandard(
_cstStandard=CDISC-SDTM
,_cststandardVersion=3.1.3
,_cstOutputLibrary=work
);
Thanks, but I'm still getting errors. I believe the CSTvalidate is still giving a setup error and there are several libraries missing.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Check out this tutorial series to learn how to build your own steps in SAS Studio.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.