home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / bit / listserv / sasl / 3472 < prev    next >
Encoding:
Text File  |  1992-07-29  |  3.2 KB  |  85 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!paladin.american.edu!auvm!ESPRESSO.BOEING.COM!OLDENKMP
  3. Message-ID: <9207291850.AA03940@espresso.bcs.eca>
  4. Newsgroups: bit.listserv.sas-l
  5. Date:         Wed, 29 Jul 1992 11:50:47 PDT
  6. Reply-To:     "P. Oldenkamp 5-4481" <oldenkmp@ESPRESSO.BOEING.COM>
  7. Sender:       "SAS(r) Discussion" <SAS-L@UGA.BITNET>
  8. From:         "P. Oldenkamp 5-4481" <oldenkmp@ESPRESSO.BOEING.COM>
  9. Subject:      Re: Target device option in SAS-GRAPH
  10. Comments: To: SAS-L@uga.cc.uga.edu, murthy@GENE.COM
  11. Lines: 72
  12.  
  13. ----------------------------------------------------------------------
  14. CONTENT:  Reply
  15. SUMMARY:  Setting up graphics device drivers to preview and then print.
  16. REL/PLTF: 6.07.02/SunOS 6.06/MVS 6.06/CMS 6.04/PC-DOS
  17. E-ADDR:   oldenkmp@ESPRESSO.boeing.com
  18. NAME:     Paul OldenKamp
  19. PHONE:    206-865-4481
  20. ----------------------------------------------------------------------
  21. Smitha Krishnamurthy asked,
  22.  
  23. >  I am using SAS version 6.07 and trying run SAS-Graph using the new
  24. >  graphics option targetdevice along with device option
  25. >  so that I could preview the graphics output on my X-Windows terminal and
  26. >  then send it to the printer(laser line printer).
  27. >  Unfortunately it is neither displaying the graph nor routing it to the
  28. >  printer. Could someone please help me.
  29. >
  30. >  BTW the following g-options are used in my program:
  31. >
  32. >   filename temp "grph.gsf";
  33. >   goptions device= xcolor
  34. >            targetdevice=ps300
  35. >            gaccess=gsasfile
  36. >            display
  37. >            prompt
  38. >            ftext=swissx
  39. >            gsfmode=rotate
  40. >            gsfname=temp
  41. >            ;
  42. > first I am using gplot procedure and then feeding the output to  greplay to
  43. > replay the graphs in four different positions. Answers will be appreciated.
  44.  
  45. Here is what I did to accomplish what you want.  First use PROC GDEVICE and
  46. copy the ps300 driver to another name, say ps300a.  I do this in a
  47. gdevice0.devices catalog and leave the devices catalog in sashelp as it
  48. comes from SAS.  Select the ps300a driver and modify the following lines on
  49. the first screen:
  50.  
  51.      GACCESS: sasaegdt>lpr -P<printer name>  (or whatever whatever system
  52.                                               command is appropriate to send
  53.                                               a postscript file to the printer)
  54.      DEVICE: PIPE
  55.  
  56. and on the gprolog window put:
  57.  
  58.      25210D
  59.  
  60. Now you can run the program:
  61.  
  62. goptions dev=xcolor
  63.          target=ps300a
  64.          ;
  65. proc gtestit;
  66. run;
  67.  
  68. After cycling through the three screens of output you can scroll back to any
  69. one and do a PRINT command on the command line.
  70.  
  71. I RTFMed in the appendex of the UNIX Companion and this is not at all clear.
  72. I would be led to try something like Smitha had origionally.  Does anyone
  73. know where this is more clearly documentated?
  74.  
  75. ----------------------------------------------------------------------
  76.            //  Paul OldenKamp
  77.           //   BCS Research and Technology          .
  78.          //    P. O. Box 24346, MS 7L-21            |\
  79.         //     Seattle, WA   98124-0346             | \____oo_
  80.        //==========================================((__|  /___>
  81.       //       ___ ___ ___ ___     __                  | //
  82.      //       /__//  //__  /  /\ //  _                 |//
  83.     //       /__//__//__ _/_ /  //__/                  ''
  84.        //
  85.