BookmarkSubscribeRSS Feed
chd1425
Calcite | Level 5

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.

  1. Is the config file the correct one as I'm using SAS EG.
  2. If correct should I add a '-' before each line. E.g. -SET CSTHOME.... ( The hyphen is originally added in the txt file in sctFrameworklibrary, but it seemed to be a bit odd to have this in the config file)
  3. I'm not able to stop server. Is it automatically stopped if I close SAS EG? A local server on my machine is used.
  4. Any other points that I've missed that might cause these errors?

Thanks,
Yen

3 REPLIES 3
Ksharp
Super User

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
);
chd1425
Calcite | Level 5

Thanks, but I'm still getting errors.  I believe the CSTvalidate is still giving a setup error and there are several libraries missing. 

chd1425_0-1681203756366.png

 

Ksharp
Super User
Yeah. I think you need re-install CST again according to its documentation.

Or contact with sas support .

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 833 views
  • 0 likes
  • 2 in conversation