LINUX SAS USERS IN 3393 HP
LINUX SAS USERS IN 3393 HP
Logging In, Logging Out, Editing, Saving & Printing
Logging In To SAS From The Computer Lab in 3393 HP
1. You should see a Welcome window asking for username which is your connect account login name. Type this in and press Enter. You will now be asked for your password which is your student number. Type it in and press Enter.
NOTE: If the computer was already logged on by somebody else, Log Out (see below for instructions) and login again under your own account.
2. To login to SAS: Click on Applications in the menu bar at the top of the screen. Then click on Other and then on SAS in the pull-down menues.
3. Close the "Getting Started Tutorial" box (the tutorial is not installed).
4. You should now see the SAS Program Editor and Log windows which are similar to those in Figure 1, Sec. 1.1, Chapter 1 of your SAS Manual. You should also see a SAS Toolbox bar underneath the windows.
5. Now you are ready for the information in Sec. 1.2, 1.3.1, 1.4, 1.5, 1.8, and Chapter 2 on. Note that Sec. 1.3.2, 1.6 & 1.7 have been replaced by the new sections below.
Logging Out
To exit from SAS: Click on file in the menu bar of the Program Editor window, and then on exit. Click on OK when asked if you really want to exit.
To exit from the system: Click on System and then on log Out.
SAS MANUAL SECTION REPLACEMENTS FOR LINUX VERSION
1.3.2 Inserting, Deleting and Moving Code lines
In the Linux version, you can't use the mouse to select text to cut, copy, and paste. Instead there are commands for inserting, deleting and moving lines in your program.
i[n] to Insert Lines After a Given Line
(a) To insert a single line type i anywhere on the line number of the line after which you want to insert a new line, then press . (The line numbers are the numbers at the left of the Program Editor.)
Example:
To insert a new line of data between line 6 and line 7, type an i on the line number of line 6 then press . That is
[pic] gives [pic]
(b) To insert n lines, type in (where n is the number of lines you want to insert) then a space, anywhere within the line number of the line after which you want the new lines to go, then press .
Example:
To insert 2 lines between line 6 and line 7, type i2 on the line number of line 6 and press . I.e.
[pic] gives [pic].
ib[n] to Insert Lines Before a Given Line
(a) To insert a single line type ib anywhere on the line number of the line before which you want to insert the new line, then press .
(b) To insert n lines before a given line type ibn , anywhere on the line number of the given line, then a space, then press .
Example:
To insert a line before line 1: [pic] gives [pic]
To insert 3 lines before line 1: [pic] gives [pic]
d[n] To Delete Lines
(a) To delete a single line type d anywhere on the line number of the line you want to delete, and press .
(b) To delete n lines, type dn, then a space, then .
Example:
To delete line 2: [pic] gives [pic]
To delete lines 2 and 3: [pic] gives [pic]
dd To Delete a Block of Lines
Type dd anywhere on the line numbers of the first and last lines of the block of lines to be deleted, then press .
m To Move a Single Line
To move a line to another location indicated by a target command, a for after or b for before
i) type m on the line number of the line you want to move
ii) type, either a on the line number of the line you want the moved line to follow, or b on the line number of the line you want the moved line to precede
iii) press .
Example:
[pic] becomes [pic]
[pic] becomes [pic]
mm To Move a Block of Lines
To move a block of lines to a designated position, type mm on the line numbers of the first and last lines of the block of lines to be moved. Then type a or b on the line number of the line the block is to follow or precede respectively. Press .
1.6 Saving Your Program and Output to a File in Your Linux Account
Each window whose contents you want to keep must be saved separately.
Always save your PROGRAM (the contents of the Program Editor Window) in your computer account. If you have the program you can always correct it and run it again if you find something was wrong. In fact, fairly frequent saves are a good idea during programming as then you won't lose everything if the computer crashes.
You also will need to save the contents of the Output Window once you are sure it is correct.
To save the contents of any of the main SAS windows:
- Make sure the window you want to save is active (title bar is blue).
- Click on file in the menu bar, then select save as ... from the sub-menu. A "Save as..." box with your account highlighted will appear. Click in the white space at the top under "Enter directory, filename, or filter". Then
For the Program Editor window
- The extension shown should be .SAS. Enter a name for your file, eg classeg1.SAS Click on O.K.
For the Output window
- Change "File type" to RTF files, then enter a name for your file and click on O.K.
eg assn1q2.rtf
1.7 Bringing a Saved File Back Into SAS
A saved file may be brought back into the Program Editor window only. The steps are as follows:
1. Make sure the Program Editor window is active, then click on file and then on open...
2. An Open file box will appear. Choose the "file type" under which you saved your file and all files of that type will be listed in the right side of the box. Click on the one you want and its name will appear under Enter directory, file name or filter. Click on O.K.
Printing
There are several options for printing. They ALL require that you have used the OPTIONS LINESIZE=80; (or 75) statement at the beginning of your program. Otherwise you will not be able to fit the output in the width of the page.
To Print Your Program and Output at Home (or elsewhere on campus)
1. Send the program and output files you saved in your computer account to your connect email account as attachments as follows:
Click on Applications, then Internet, then Mozilla. Type in the address box. This should take you to your connect account. Login and attach your saved files in the usual way.
2. At home, first open Microsoft Word (or WordPerfect). Do NOT just click on the files as at least the .SAS file will not open as Word does not recognize the extension. Bring the first of your files into the document (file, open). For the second file use insert then file.
3. Make sure your font is Courier 10 pt for at least the output or it will not align properly - especially in graphs. You may also have to change the margins (under Page Setup in the File pulldown menu).
4. Edit your Word file to get rid of unneeded output, make sure graphs are all on one page, etc
OR
In the lab transfer the contents of the Program Editor and Output windows to Open Office, save as a Word file and then send it to your connect account, and edit it and print it at home. See instructions in boxex below.
Printing Directly to the Printer in 3371 HP
This option is not recommended as the queue items are not given the name of the file and so you can't tell which are yours.
N.B. You will need a Campus Card with money on it. Printing costs 10 cents per page.
Printing each of the Program Editor and Output Windows Separately
- Make sure the window you want to print (Editor or Output) is active.
- Click on File then on Print Make sure the Printer Name is Sunrayserver. Click on O.K.
- In the printer room 3371HP swipe your Campus Card SLOWLY, strip frontwards. Wait for the queue of files to appear, click on the ones you think are yours, and then click on Print.
- When your document has printed click on log off. This is very important as it prevents others from using your card.
-----------------------
v
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related searches
- multiple imputation in sas pdf
- linux command line in windows
- linux check users logged in
- character to numeric in sas eg
- sas convert character date to sas date
- reorder variables in sas dataset
- sas reorder columns in table
- sas if variable in list
- sas difference in differences example
- export users in ad group
- authenticated users vs users group
- change folder name in users folder