The installation instructions for the SAS Life Science Analytics Framework Macro API were authored initially assuming Microsoft Windows as the target client operating system. More recently, an initiative was completed to provide instructions for installing specific releases of the Macro API to the Linux operating system.
The instructions provided below support a Macro API 2.2.1 installation for Linux; the instructions also support a Macro API 2.5.1 installation. Note: For 2.5.1, all occurrences of the string '2.2.1' need to be replaced with the string '2.5.1'.
Note that the instructions provided below for installation to Linux are not valid for any other versions of the Macro API.
Macro API installation instructions for the Linux Operating System
1. Follow the instructions in the Getting Started with the SAS® Life Science Analytics Framework Java API document to install the Java API client. Be
sure to note the location of the lib directory. For example, this location could be: /opt/lsaf-java-api-client-2.2.1/lib
2. Unzip the contents of lsaf-sas-macro-2.2.1.zip file to /opt or another suitable location. This action creates the following files and folders in /opt:
- /opt/lsaf-sas-macro-2.2.1/conf – This folder contains example configuration files.
- /opt/lsaf-sas-macro-2.2.1/docs – This folder contains the documentation for the SAS Life Science Analytics Framework Macro API, which includes detailed documentation that describes all macros that are delivered with the distribution.
- /opt/lsaf-sas-macro-2.2.1/lib – This folder contains the sas.lsaf.api.macro.jar file.
- /opt/lsaf-sas-macro-2.2.1/sasmacros – This folder contains the SAS Life Science Analytics Framework macros as .sas files.
3. Determine the location of your SAS installation and the configuration file. For example, a Linux Unicode support installation could have !sasroot
pointing to this location: /opt/sas/SASFoundation/9.4/nls/u8
4. Back up the !sasroot/sasv9.cfg file. You edit in the next step.
Caution: Use extreme care when you edit this file, and modify only the indicated text. Ensure that you do not insert any carriage returns in the
sas.app.class.dirs option. If you have any questions, concerns, or problems, contact SAS Technical Support.
5. Edit the !sasroot/sasv9.cfg file to add the following lines to the end of the file:
/* define the location of the SAS Life Science Analytics Framework Macro API */
-insert sasautos "/opt/lsaf-sas-macro-2.2.1/sasmacros"
/* put both the macro and java api client jars on the classpath */
-JREOPTIONS (-Dsas.app.class.dirs=/opt/lsaf-sas-macro-2.2.1/lib:/opt/lsaf-java-api-client-2.2.1/lib)
/* prevent a classpath not set warning from javaobj */
-SET CLASSPATH !CLASSPATH
6. Save the file and start a new SAS session to verify the installation.
Operating System and Release Information
| SAS System | SAS Life Science Analytics Framework | Linux for x64 | 5.2 | | 9.4 TS1M6 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.