Index of /examples/sas/examples/ex01-helloworld

Icon  Name                    Last modified      Size  Description
[DIR] Parent Directory - [   ] Readme 06-Jun-2014 12:24 1.6K [   ] SASjob 17-Oct-2018 16:42 435 [   ] helloWorld.log 10-Oct-2018 13:37 13K [   ] 27-Oct-2014 13:59 485

RCS sample SAS code

This directory contains a simple "Hello, World!" SAS code.

Interactive execution:

Select the version of SAS:
scc1% module avail sas
sas/9.3 sas/9.4
scc1% module load sas/9.4

Start a SAS interactive session:
scc1% sas &
In SAS: Program Editor window open program: File -: Open. To execute the program, select Run command in the menu. The output will be written into Sas: Log window.

Interactive command line execution:

Start a SAS command line interactive session:
scc1% sas -nodms
Type in the following commands at the SAS prompt:
> put "Hello, World!";
> proc product_status; run;

To exit SAS, type in the following command (notice the dot at the end of the command!):
> endsas;.

Batch execution:

At the SCC prompt execute:
scc1% sas
The output will be written into helloWorld.log file.

Submit SAS job:

This directory contains a simple SASjob script that, when submitted to the batch system, will execute the script. To submit the job, type the following command at the SCC prompt:
% qsub SASjob
Users who are members of any Medical Campus projects must also include their project group name:
% qsub -P scv SASjob

Helpful Links:

RCS: SAS Basics
Running Jobs on the SCC