Index of /examples/sas/basic

[ICO]NameLast modifiedSizeDescription

[PARENTDIR]Parent Directory   -  
[TXT]SASjob 2018-10-17 16:42 435  
[TXT]helloWorld.sas 2024-02-01 13:54 486  
[TXT]pgm.asv 2024-11-11 14:27 486  
[TXT]Readme.md 2019-05-24 19:27 1.7K 
[TXT]helloWorld.log 2024-11-11 14:17 13K 

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 helloWorld.sas 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 helloWorld.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 helloWorld.sas 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


Note: Research Computing Services (RCS) example programs are provided "as is" without any warranty of any kind. The user assumes the entire risk of quality, performance, and repair of any defects. You are encouraged to copy and modify any of the given examples for your own use.