![]() |
|
|
|||||||||||||||||
|
Printing files in UNIX/Linux Running SAS in the background Running SAS interactively on UNIX/Linux A few suggestions to try on your own
Printing files in UNIX/AIXTo 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. Running SAS in the backgroundWhen 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.
Running SAS interactively on UNIX/LinuxTo 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. |
||||||||||||||||
![]()
| © University of New Mexico -- last updated -- comments to: docs@unm.edu |