Difference between revisions of "SAS"

From UFRC
Jump to navigation Jump to search
Line 55: Line 55:
 
#!/bin/bash
 
#!/bin/bash
 
#
 
#
#PBS -N Research
+
#SBATCH --name=sas_job
#PBS -o market.out
+
#SBATCH --output=sas_%j.out
#PBS -e market.err
+
#SBATCH --mail-type=END,FAIL #Only email summary and failure reports
#PBS -m abe
+
#SBATCH --mail-user=your_email_address  # Where to send mail
#PBS -M <EMAIL ADDRESS>
+
#SBATCH --ntasks=1                   # Run on a single CPU
#PBS -l nodes=1:ppn=1
+
#SBATCH --mem=1gb                 # Memory limit
#PBS -l pmem=1gb
+
#SBATCH --time=01:00:00         # Run for up to one hour
#PBS -l walltime=01:00:00
+
date;hostname;pwd
  
 
module load sas
 
module load sas
cd $PBS_O_WORKDIR
 
  
 
sas -memsize 1024M -nodms -nonews -work $TMPDIR -filelocks none -sysin sas.inp
 
sas -memsize 1024M -nodms -nonews -work $TMPDIR -filelocks none -sysin sas.inp

Revision as of 21:45, 28 March 2017

Description

sas website  

SAS is a commercial integrated system for statistical analysis, data mining, and graphics as well as many enterprise oriented additional features. SAS cost and the breadth of SAS features means that both a significant monetary investment and a substantial time investment are required to master it. SAS 9.3 Documentation is vast. For research purposes the SAS 9.3 User's Guide is a thorough reference for the functions and procedures you may need to do the statistical analysis using SAS.

Required Modules

modules documentation

Serial

  • sas

System Variables

  • HPC_{{#uppercase:sas}}_DIR - installation directory

Additional Information

Commands

SAS has a number of options:

Batch Submission

To do a batch submission of a SAS script use the -sysin command line option and write all of your SAS commands in a file. In this way you can submit jobs to the batch queue system to run your jobs on the cluster.

-work directory

SAS is a mature product with a long history behind it. In a modern high-performance environment it means that additional actions need to be taken to mitigate potential issues stemming from SASs focus on filesystem I/O instead of using memory.

Interactive Use

See GUI_Programs to learn how to run the Graphical SAS interface for short debugging sessions.

PBS Script Examples

Sample Job Script

#!/bin/bash
#
#SBATCH --name=sas_job
#SBATCH --output=sas_%j.out
#SBATCH --mail-type=END,FAIL #Only email summary and failure reports
#SBATCH --mail-user=your_email_address   # Where to send mail	
#SBATCH --ntasks=1                    # Run on a single CPU
#SBATCH --mem=1gb                  # Memory limit
#SBATCH --time=01:00:00          # Run for up to one hour
date;hostname;pwd

module load sas

sas -memsize 1024M -nodms -nonews -work $TMPDIR -filelocks none -sysin sas.inp