Skip to content

Techdocs

Sections
Personal tools
You are here: Home Systems and Software SAS WYLBUR Handout
Document Actions

SAS WYLBUR Handout

How to use SAS WYLBUR.

Introduction

This handout covers the basics of running a SAS program on the MVS/WYLBUR System, including how to set up the JCL, submit a job, look at the output of the program run, and print the output.

JCL Setup

To run a SAS program on WYLBUR, include the appropriate JCL (Job Control Language) in front of the SAS program.  

Below is the simplest set of JCL statements necessary to make a SAS program run successfully on this system.  Please note that all JCL statements start with two slashes.  In addition, the spaces, commas, and other delimiters in a JCL statement must appear as indicated.  If no spaces are shown in the JCL, then no spaces should be used, or else the program will fail due to JCL errors.

//jobname JOB (,box#,time,lines),'comment',USER=logon-id

//STEP EXEC SAS

//SYSIN DD *

The SAS program

//*END

As indicated above, the first three lines and the last one are JCL.  The first JCL line is called the JOB card, which contains the following elements:

jobname  = usually 4-8 characters long

box#     = the box number in which your output goes once it gets printed

time     = CPU time allowed to run the job

e.g.,   S30  is 30 seconds

30  is 30 minutes

lines    = maximum number of lines allowed for the output   

e.g.,     5  is  5,000 lines

30  is 30,000 lines

comment  = usually any comment up to 20 characters.  Most users use their last name here.

logon-id = the WYLBUR account from which the program is run

The second line:  //STEP  EXEC  SAS informs the WYLBUR system that the SAS software will be accessed.  The third line:  //SYSIN  DD * indicates that the actual SAS program is going to follow next.  The very last statement:  //*END tells the system that  the SAS program has ended. 

Below is a simple example of a SAS program with the appropriate JCL.

//SASPGM1 JOB (,2B,S30,5),'JOE SMITH',USER=ABC1234

//STEP EXEC SAS

//SYSIN DD *

DATA ONE;

INPUT NAME $ 1-10 SEX $ 12 AGE 14-15;

CARDS;

ADAMS M 20

SMITH M 35

JONES F 33

JACKSON M 25

WILLIS F 20

;

PROC PRINT;

//*END

How to Execute and Print a SAS Program

In this example, the above program is saved in a file named SASPGM1.  To execute it and print the output, the following WYLBUR commands must be typed at the WYLBUR prompt.   Please note  that after typing each command, press the Enter key.

1.  Read the program file into the active file or screen:

       USE SASPGM1  

2.  Submit the job:

       RUN HOLD 

3.  When asked for the password, type it in.

4.  Check to see if the job has finished executing:

       LOC * 

5.  After the message  "AWAITING PRINT HOLDOUT" appears, bring the program run into the active screen:

       FET * CLE 

6.  After looking at your program run and checking that there are no errors, print the output:

       REL * 

7.  Check to see if the output has finished printing:

       LOC *

8.  Repeat step 7 until the message  "NO JOBS FOUND" appears, after which you can pick up the printout from the box that you designated in the JOB  card. 

For More Help

If you need assistance in setting up the correct JCL for reading from or writing to external files or SAS data sets, please send email to sashelp@tamu.edu.

If you need help with creating, editing, and saving a file using the WYLBUR Editor or with using the WYLBUR commands, please refer to the WYLBUR User's Guide

For any other assistance, please call the Help Desk Central at  (979) 845-8300.

Search box