Odds -n- Ends

Contents
Introduction
Session 1
Session 2
Session 3
Session 4
Session 5
Session 6
Odds -n- Ends
 
 

A few suggestions to try on your own

  1. Try adding value formats for AGEGROUP and rerunning your program. (Hint: Add a second VALUE statement to your PROC FORMAT;)

  2. Try selecting just those respondents under the age of 25 for one run.

  3. Try creating a new variable out of Q1 (with an IF/THEN statement) so that all respondents who answered 'Strongly Agree' or 'Agree' are grouped together and those who answered 'Disagree' or 'Strongly Disagree' are grouped together. Rerun your program.

ToC

Printing files in UNIX/AIX

To print a file from Linux, at the $ prompt type:

    lpr -Pescs survey.lst

This will print the file survey.lst on the laser printer in portrait orientation at the ITS building and the output will be distributed in the dispatch area under the last character of your login name. If you omit the printer designation, -Pescs, your file will print on the printer you have specified on the setenv command in your .login file.

    setenv printer escs

Often, SAS output must be printed in landscape orientation. In this case, use the qprt command:

    qprt -Z1 survey.1st

To learn more about printing and available printer locations, see the Quick Reference, UNIX Commands.

ToC

Running SAS in the background

When you are running SAS noninteractively, your terminal will be frozen until the program finishes. If you want to submit a program to SAS and simultaneously work on other files or tasks while it is running (background processing), type the sas command as follows:

    sas survey.sas & <Enter>

You can check the status of your job by issuing the ps command at the $ prompt. When the SAS job disappears from process list, it's completed. SAS still creates the same .log and .lst files it would if the job were being run in the foreground. At any time during its execution, the job may be brought into the foreground with the fg command.

Note: When submitting a program to background processing, make sure you donšt work on a file that is going to be executed or needed by the program while it is executing.

ToC

Running SAS interactively on UNIX/Linux

To start an interactive SAS session on Linux, simply type sas at the Linux ($) prompt.

    sas and press <Enter>

When you start SAS in this way, you are automatically in a SAS Display Manager session in which you interact directly with the SAS System. The Display Manager is a quick and convenient way to program and edit in the SAS System. You can prepare a program (or INCLUDE one that you have previously written and saved), SUBMIT it, see the results, RECALL and modify the program and resubmit all or part of it - all within the same SAS session.

To learn more about the Display Manager, including how to save a file, load a saved file into the Display Manager, use the text editor in SAS, use the Help Facility, etc., see Section 10 of the Introduction to UNIX document, SAS.

ToC

© University of New Mexico -- last updated -- comments to: docs@unm.edu