Sunteți pe pagina 1din 2

z/OS (OS/390) Reference Sheet

for SAS Programming 1: Essentials


File References
Open a SAS Program

include '.workshop.sascode(p104d01)'

Save a SAS Program

file '.workshop.sascode(myprog)'

Access a SAS Data Library

libname orion '.workshop.sasdata';

Read a Raw Data File

infile '.workshop.rawdata(sales)';

Create ODS Reports

ods html file='.workshop.reports(myhtml)' rs=none;

Command Line Commands


There are a number of commands that you might find useful while working in the SAS windowing
environment. You can execute these commands from the command line.
PROGRAM or PRG
LOG
OUTPUT
EXPLORER
ODSRESULTS
HELP
KEYS
FSEDIT
AUTOSCROLL 0
TOP
BOTTOM
BACKWARD
FORWARD
LEFT
RIGHT
ZOOM
UNDO
SUBMIT
RECALL
CLEAR
END
BYE

Prepared: JUN2008

opens/activates the Program Editor window


opens/activates the Log window
opens/activates the Output window
opens/activates the Explorer window
opens/activates the Results window
opens/activates the Help window
opens/activates the Keys window
opens/activates the FSEDIT window
controls how often the Log and Output windows scroll to display output
scrolls to the beginning of the window
scrolls to the last line of the window
scrolls back toward the beginning of the text
scrolls forward toward the end of the text
scrolls to the left of the window
scrolls to the right of the window
decreases and increases the size of the window (toggle)
cancels the effect of the most recently submitted text editing command
submits the block of statements in your Program Editor window
returns to the Program Editor window the most recently submitted code
clears a window
closes a window
ends a SAS session

Page 1

Function Keys
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12

Help
Zoom
Submit (or End)
Recall
Rfind
Rchange
Backward
Forward
Output
Left
Right
Home

Shift F1
Shift F2
Shift F3
Shift F4
Shift F5
Shift F6
Shift F7
Shift F8
Shift F9
Shift F10
Shift F11
Shift F12

Mark
Smark
Unmark
Cut
Paste
Store
Prevwind
Next
Pmenu
Command
Keys
Undo

Text Editor Line Commands


The left-most portion of the Program Editor window includes a numbered field. This field is where you enter
line commands. These commands are denoted by one or more letters, and can move, copy, delete, justify, or
insert lines.
Some common line commands include

M - moves a line of text

C - copies a line of text

D - deletes a line of text

I - inserts a line of text.

When you use some line commands, you also need to specify a location. For example, if you type an M in the
numbered field for a line in the Program Editor, then you must specify where you want the line of text to be
moved. You can use the A (after) and B (before) line commands to specify a location.
If you type an A in the numbered field for a line, then the line of text that you want to move will be placed after
the line marked with an A after you press the ENTER or RETURN key. If you type a B in the numbered field for
a line, then the line of text that you want to move will be placed before the line marked with a B after you press
the ENTER or RETURN key.

Prepared: JUN2008

Page 2

S-ar putea să vă placă și