home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!ESPRESSO.BOEING.COM!OLDENKMP
- Message-ID: <9207291850.AA03940@espresso.bcs.eca>
- Newsgroups: bit.listserv.sas-l
- Date: Wed, 29 Jul 1992 11:50:47 PDT
- Reply-To: "P. Oldenkamp 5-4481" <oldenkmp@ESPRESSO.BOEING.COM>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: "P. Oldenkamp 5-4481" <oldenkmp@ESPRESSO.BOEING.COM>
- Subject: Re: Target device option in SAS-GRAPH
- Comments: To: SAS-L@uga.cc.uga.edu, murthy@GENE.COM
- Lines: 72
-
- ----------------------------------------------------------------------
- CONTENT: Reply
- SUMMARY: Setting up graphics device drivers to preview and then print.
- REL/PLTF: 6.07.02/SunOS 6.06/MVS 6.06/CMS 6.04/PC-DOS
- E-ADDR: oldenkmp@ESPRESSO.boeing.com
- NAME: Paul OldenKamp
- PHONE: 206-865-4481
- ----------------------------------------------------------------------
- Smitha Krishnamurthy asked,
-
- > I am using SAS version 6.07 and trying run SAS-Graph using the new
- > graphics option targetdevice along with device option
- > so that I could preview the graphics output on my X-Windows terminal and
- > then send it to the printer(laser line printer).
- > Unfortunately it is neither displaying the graph nor routing it to the
- > printer. Could someone please help me.
- >
- > BTW the following g-options are used in my program:
- >
- > filename temp "grph.gsf";
- > goptions device= xcolor
- > targetdevice=ps300
- > gaccess=gsasfile
- > display
- > prompt
- > ftext=swissx
- > gsfmode=rotate
- > gsfname=temp
- > ;
- > first I am using gplot procedure and then feeding the output to greplay to
- > replay the graphs in four different positions. Answers will be appreciated.
-
- Here is what I did to accomplish what you want. First use PROC GDEVICE and
- copy the ps300 driver to another name, say ps300a. I do this in a
- gdevice0.devices catalog and leave the devices catalog in sashelp as it
- comes from SAS. Select the ps300a driver and modify the following lines on
- the first screen:
-
- GACCESS: sasaegdt>lpr -P<printer name> (or whatever whatever system
- command is appropriate to send
- a postscript file to the printer)
- DEVICE: PIPE
-
- and on the gprolog window put:
-
- 25210D
-
- Now you can run the program:
-
- goptions dev=xcolor
- target=ps300a
- ;
- proc gtestit;
- run;
-
- After cycling through the three screens of output you can scroll back to any
- one and do a PRINT command on the command line.
-
- I RTFMed in the appendex of the UNIX Companion and this is not at all clear.
- I would be led to try something like Smitha had origionally. Does anyone
- know where this is more clearly documentated?
-
- ----------------------------------------------------------------------
- // Paul OldenKamp
- // BCS Research and Technology .
- // P. O. Box 24346, MS 7L-21 |\
- // Seattle, WA 98124-0346 | \____oo_
- //==========================================((__| /___>
- // ___ ___ ___ ___ __ | //
- // /__// //__ / /\ // _ |//
- // /__//__//__ _/_ / //__/ ''
- //
-