To start a new SAS session the SAS environment has to be initialized by means of one of the shell scripts created during the SAS software installation process (see section § 1.3). The way this is done depends on the shell used. Assuming the working directory is /my_work, and that SAS software installation was done at:
/top_dir/xmmsas_YYYYMMDD_HHMM
the script can be executed as follows:
. /top_dir/xmmsas_YYYYMMDD_HHMM/setsas.sh [sh, bash, ksh] or source /top_dir/xmmsas_YYYYMMDD_HHMM/setsas.csh [csh, tcsh]
We recommend not to work in the directory where SAS is installed, i.e. not to mix the working directory, /my_work, with the SAS installation directory, /top_dir/xmmsas_YYYYMMDD_HHMM.
The setsas.[c]sh script takes care of all necessary environment setup required to work with SAS. However, to start working, SAS has to be told where are the observation data files(ODFs) and the calibration files (CCFs).