For some perverted reason, SAS on samiam has not been configured to work with the terminals in the Seuss lab. There are two steps to making certain that the keyboard on the terminals works with SAS. The first is to set up what your X resources so that the terminal keys map to SAS keys. To do this follow these instructions:
1) copy my Xresource file to your account.
The commands are:
cd
mkdir app-defaults
chdir app-defaults
cp ~/carey/app-defaults/SAS .
2) set the environmental variable
XAPPLRESDIR. It is handy to put the following command into your shell
resource file:
setenv XAPPLRESDIR ~/app-defaults
Once you have done these, the keys will now perform the following
actions when you are writing and editing a program in SAS:
| |
|
Action |
Insert |
Toggle insert and overwrite mode |
Delete |
Delete the character that the cursor is on |
Home |
Go to the top of the file |
End |
Go to the bottom of the file |
Page Up |
Scroll up one page |
Page Down |
Scroll down one page |
Ctrl a |
Move to the beginning of the line |
Ctrl e |
Move to the end of the line |
Ctrl d |
Delete the character that the cursor is on |
Ctrl k |
Delete from the cursor to the end of the line |
The second task is to change your SAS profile so that it matches
mine. This will give definitions to the function keys and also change
the colors of the windows. To do this, enter the following unix
commands:
cd
cd sasuser
mv profile.sct01 profile.sct01.old
cp ~carey/sasuser/profile.sct01 .
The following table shows what the function keys now perform in SAS:
| ||
|
|
|
F1 |
undo last command |
clear the window |
F2 |
cut marked text |
undo last command |
F3 |
store (copy) marked text |
pgm (move to program window) |
F4 |
paste the cut or stored text |
prevcmd (execute the previous command) |
F5 |
rfind (repeat the last find command) |
bfind (backwards find) |
F6 |
rchange (repeat the last change command) |
wpopup |
F7 |
recall the last commands submitted to SAS |
log (move to log window) |
F8 |
:ts (break the text here, creating a new line) |
|
F9 |
:tc (join text with the next line) |
|
F10 |
submit commands |
command (toggle command vs menu modes) |
F11 |
unmark text |
output (move to output window) |
F12 |
mark text |
mark rectangular text block |
Other tidbits:
Examples from the SAS manuals are located
within directory
/usr/local/opt/SAS/sas609/samples
Within that directory are a number of
subdirectories that contain the source code for a particular SAS
product. For example, the source code for all the examples in the SAS
STAT product is located within
usr/local/opt/SAS/sas609/samples/stat
and the source code for GRAPH is located within
usr/local/opt/SAS/sas609/samples/graph
Examples of SAS macros may be found in
directory
usr/local/opt/SAS/sas609/sasautos