We have a different location for program installations and the projects with the SAS-Programms
Installation (disk d):
sasunit
Project (disk f):
- main
- test
- sasunit_prj (with all SASunit project files e.g. bin, dat, doc etc.)
In sasunit.setup.9.4.cmd it is possible to set up this structure.
SET SASUNIT_TESTDB_PATH=%SASUNIT_PROJECTROOT%\sasunit_prj\%SASUNIT_LANGUAGE%\testdb
SET SASUNIT_LOG_PATH=%SASUNIT_PROJECTROOT%\sasunit_prj\%SASUNIT_LANGUAGE%\logs
SET SASUNIT_SCN_LOG_PATH=%SASUNIT_PROJECTROOT%\sasunit_prj\%SASUNIT_LANGUAGE%\scn_logs
SET SASUNIT_REPORT_PATH=%SASUNIT_PROJECTROOT%\sasunit_prj\%SASUNIT_LANGUAGE%\doc
SET SASUNIT_RUNALL=%SASUNIT_PROJECTROOT%\sasunit_prj\run_all.sas
but initsasunit.sas and runsasunitsetup.sas want the bin directory only in g_sProjectRootFolder, i_root (SASUNIT_PROJECTROOT).
It is possible to change initsasunit.sas and runsasunitsetup.sas to have all the sasunit project files to have in one directory?
in this constallation some directories are not created in initsasunit.sas:
%SASUNIT_PROJECTROOT%\sasunit_prj\bin
%SASUNIT_TESTDB_PATH%
%SASUNIT_LOG_PATH%
%SASUNIT_SCN_LOG_PATH%
%SASUNIT_REPORT_PATH%
%SASUNIT_PROJECTROOT%\sasunit_prj\dat
%SASUNIT_PROJECTROOT%\sasunit_prj\doc\spec
%SASUNIT_PROJECTROOT%\sasunit_prj\en\doc\tempDoc\crossreference
Anonymous
Since we moved to GitHub I created a ticket there.
From my point of view these are two points:
- allow bin files to be moved
- Check wether runsasunit creates all the necessary folders or not.
Regards
Klaus
This is a reasonable approach.
As we created the setup script we didn't have that in mind.
SASUnit currently is capable to do so, but not the setup routine.
To minimze manual editing of script files you can do the following:
1. Temoprarily created copy run_all.sas into ....\sasunit_prj\saspgm
2. Configure setup script to have ...\sasunit_prj as SASUNIT_PROJECTFOLDER
3. Start setup script
4. Remove run_all and saspgm folder
5. Update your run_all.sas to use absolute path to autocall members
6. Update your run_all.sas to use absolute path to test scenarios in run_sasunit
7. Update your bin\sasunit<...>.cfg to use correct path to run_all.sas in -sysin
Here are examples of the changes you need to do:
sasunit setup script file sasunit.setup.9.4.cmd:
Update run_all.sas:
Update bin/sasunit.9.4.<os>.<language>.cfg:
This is the way to go with the least manual effort.
We will incoporate this setup into our setup scripts.
See here