OSU Navigation Bar

The Ohio State University

Department of Statistics

Cockins Hall
rollover image OSU Statistics
            Home

design element

OSU Statistics

Home

News

Research & Consulting Groups

People

For Visitors

For Prospective Students

For Current Students, Staff & Faculty

Contact Us



rollover image

For Current Students & Faculty

rollover image

Courses

rollover image

Links

rollover image

Computer Support

rollover image

Internal Documents

rollover image

webmail

Getting SAS to print a printable PostScript file.

Due to the fact that the export to PostScript menu item creates unprintable color garbage, we recommend either exportting to a gif file and then converting it using xv, or use the following code fragment before going into SAS/GRAPH to set it to print to a PostScript file. (In this example the file will be called a.ps, and will be placed in the directory from which SAS was started.)

filename fref 'a.ps';
goptions reset=all target=ljivps gsfname=fref gsfmode=replace gsflen=132 rotate=landscape;

After typing this when you select print from the GRAPH window it will print to the file specified.

Transferring SAS data sets from the PC to the Macintosh.

(This should also work for Unix to something else.)

Suppose we have a SAS data set, Mike.ssd in the folder Rosssas on the A drive of the PC.

Step 1 - Open SAS on the PC. Create the transport file.

libname oldlib 'a:\rosssas\';
libname tranfile xport 'a:\flig';
proc copy in=oldlib out=tranfile; run;

This creates a transport text file called flig on the A drive. It is not in a folder.

Step 2 - On the Macintosh, drag the file flig from the PC disk into the SAS folder. (SAS on the Mac will not recognize the PC disk as part of a path name, although it will recognize a Mac disk).

Step 3 - Open SAS on the Mac. Convert the transport file to a SAS data set. Note that the transport file remembers the name of the SAS data set is mike. The name flig is just an intermediate name that is used for the transport file but does not relate to the naming of the SAS data set. Put the SAS data set in the folder ross.

libname hostlib 'Macintosh HD:SAS612:ross';
libname tranfile xport 'Macintosh HD:SAS612:flig';
proc copy in=tranfile out=hostlib; run;

Running SAS in the background.

If file.sas is the file with sas commands: (Don't forget to renice!)

sas file.sas &
renice -u username

You might want to include a linesize command at the top of file.sas so the output is easily read. eg:

options linesize=78;



If you have trouble accessing this page, or need an alternate format contact webmaster@stat.osu.edu.