| How do I use a SAS on Unix? |
| User Opinions |
|
No users have voted.
|
|
Thank you for rating this answer.
|
Initially you will need to create a file containing your SAS program. The Unix system contains several editors you can use to create a file. These include emacs, pico and vi.The file you create should have an extension of .sas
You could run a sas program by issuing the following command
sas -dms filename
If, for example, your file were named salary.sas, the command to run sas would be sas -dms salary
Once the command has finished running the Unix prompt will reappear. Typically, the above command will create two new files. One file will contain a log of the procedures you run along with any notes, warnings or errors. The new file will retain the same root name as your original sas file along with the log extension. If, the original sas file were salary.sas the log file would be salary.log
The second file created contains the output from the various sas procedures you ran. The second file will retain the same root name as your original sas file along
with the lst extension. If, the original sas file were salary.sas the listing file would be salary.lst.
Using SAS in interactive line mode
You can invoke sas in interactive line mode by issuing
sas -nodms
This results in several lines describing your sas installation and a line number prompt being printed. The line prompt might appear as
1?
Enter your commands and data. You can exit this mode by entering
endsas;
at the line prompt.
|
| Visitor Comments |
|
No visitor comments posted. Post a comment
|
| Related Questions |
|
No related questions were found.
|
| Attachments |
|
No attachments were found.
|