Running SAS on Pegasus
SAS can be run on Pegasus in Non-interactive/Batch and Interactive/Graphical modes:
1. Non-Interactive Batch Mode
In batch mode, SAS jobs should be submitted via LSF using the bsub command . A sample LSF script file jobfile to submit SAS jobs on lewis may include the following lines:
#BSUB -J jobname
#BSUB -o jobname.o%J
#BSUB -e jobname.e%J
where “test.sas” is an SAS program file.
Then, type the following command to submit the job
bsub < jobfile
For general information about how to submit jobs via LSF, please see the Running Applications section on Pegasus Modules and Applications page .
2. Interactive Graphical Mode
To run SAS interactively you need to forward your X11 display, load the SAS module then use the interactive queue to launch the application. Windows users need a secure shell program (ssh) to establish the remote connection and an X Server to handle the local display before connecting to Pegasus. Instructions below.
If you run Linux or OS X
$ xhost +
$ ssh -X YOUR_CCS_USERNAME@pegasus.ccs.miami.edu
$ module load sas
$ module load java
Test your code on the login node
Run your jobs on the interactive node
$ bsub -q interactive -P hpc -Is -XF sas
Job is submitted to project.
Job is submitted to queue .
Notice the “-P hpc” in the sub command above! hoc is my project. If you do not specify your project you will receive an error like the one below.
$ bsub -q interactive -Is -XF sas
Error: Your account has multiple projects: cbbda hpc.
Please specify a project by -P option and resubmit
Request aborted by esub. Job not submitted.
If you run Windows
1. Add hostname (pegasus.ccs.miami.edu)
2. Switch Protocol to SSH
3. Type name of session in saved sessions
4. Click ‘Save’
5. Expand the ‘SSH’ tab from the ‘Category’ list
6. Choose ‘X11′ from ‘SSH’ list
7. Check ‘Enable X11 Forwarding’
8. Choose ‘Session’ from ‘Category’ list
9. Click ‘Save’
Connecting to Pegasus forwarding Display
1. Start Xming
2. Start Putty
3. Double click on the saved session you want
4. Enter username and password as requested
5. You should now be able to run X applications from the host on your local desktop