sas >> gplot w/o graphics device

by Nathan.N.Broudo » Thu, 18 Nov 2004 00:52:34 GMT

Hi,

I'd like to use gplot to output to a gif file without involving the
graphics device. When I run gplot, it contacts the X server before it
continues, therefore I can't run my SAS program in batch mode (I'm on VMS)
because it hangs up waiting for a response from X. I've tried using
goption nodisplay, but it still talks to the X server. Is there a way to
just produce the gif file ?

Thanks
XXXX@XXXXX.COM




This message,together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.

sas >> gplot w/o graphics device

by JackHamilton » Thu, 18 Nov 2004 02:01:29 GMT


Try the system option NOTERMINAL. You might also need NODMS.

I don't think you want NODISPLAY, which, according to the
documentation, will sometimes suppress the creation of all graphics
output.




8:52 AM >>>
Hi,

I'd like to use gplot to output to a gif file without involving the
graphics device. When I run gplot, it contacts the X server before it
continues, therefore I can't run my SAS program in batch mode (I'm on
VMS)
because it hangs up waiting for a response from X. I've tried using
goption nodisplay, but it still talks to the X server. Is there a way
to
just produce the gif file ?

Thanks
XXXX@XXXXX.COM




This message,together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.


"MMS <firsthealth.com>" made the following annotations.
------------------------------------------------------------------------------
This message, including any attachments, is intended solely for the use
of the named recipient(s) and may contain confidential and/or
privileged information. Any unauthorized review, use, disclosure or
distribution of this communication(s) is expressly prohibited.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy any and all copies of the original message.
Thank you.
==============================================================================

sas >> gplot w/o graphics device

by Paige Miller » Thu, 18 Nov 2004 02:05:51 GMT


filename abc 'd:\test.gif';
goptions device=gif gsfname=abc;

--
Paige Miller
Eastman Kodak Company
paige dot miller at kodak dot com
http://www.kodak.com

"It's nothing until I call it!" -- Bill Klem, NL Umpire
"When you get the choice to sit it out or dance, I hope you dance"
-- Lee Ann Womack

sas >> gplot w/o graphics device

by Nathan.N.Broudo » Thu, 18 Nov 2004 02:28:59 GMT

sas/noterminal myprog.sas

that did the trick - thanks


Nathan N. Broudo
Actuarial Business Associate
Healthnet, Inc.
phone: 818 676 7513
fax: 818 676 8809
email: XXXX@XXXXX.COM
Mailstop: CA-102-16-01




Jack Hamilton
<JackHamilton@FIRST To: XXXX@XXXXX.COM
HEALTH.COM> cc:
Sent by: "SAS(r) Subject: Re: gplot w/o graphics device
Discussion"
< XXXX@XXXXX.COM
.EDU>


11/17/2004 10:01 AM
Please respond to
Jack Hamilton






Try the system option NOTERMINAL. You might also need NODMS.

I don't think you want NODISPLAY, which, according to the
documentation, will sometimes suppress the creation of all graphics
output.




8:52 AM >>>
Hi,

I'd like to use gplot to output to a gif file without involving the
graphics device. When I run gplot, it contacts the X server before it
continues, therefore I can't run my SAS program in batch mode (I'm on
VMS)
because it hangs up waiting for a response from X. I've tried using
goption nodisplay, but it still talks to the X server. Is there a way
to
just produce the gif file ?

Thanks
XXXX@XXXXX.COM




This message,together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.


"MMS <firsthealth.com>" made the following annotations.
------------------------------------------------------------------------------

This message, including any attachments, is intended solely for the use
of the named recipient(s) and may contain confidential and/or
privileged information. Any unauthorized review, use, disclosure or
distribution of this communication(s) is expressly prohibited.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy any and all copies of the original message.
Thank you.
==============================================================================







This message,together with any attachments, is
intended only for the use of the individual or entity
to which it is addressed. It may contain information
that is confidential and prohibited from disclosure.
If you are not the intended recipient, you are hereby
notified that any dissemination or copying of this
message or any attachment is strictly prohibited. If
you have received this message in error, please notify
the original sender immediately by telephone or by
return e-mail and delete this message, along with any
attachments, from your computer. Thank you.

Similar Threads

1. Saving graphics using goptions device

2. unable to initialise graphic device

Hello All,
I am using Gplot and greplay with goptions.

My goptions for Gplot and Greplay are as follows
 goptions nodisplay;
 goptions reset=symbol rotate=landscape device = emf gsfname=censor
ctext=black cback=white gsfmode=replace
ftext=centb gsflen=80 display autofeed gunit=pct;

The gplot prints correctly to the filename "censor" however the greplay
throws out an error "unable to initialise graphic device" with the same
goptions except with a different gsfname.

Eg.

filename wordfile "U:\xx.emf";
  goptions display;
  goptions reset=symbol rotate=landscape device = emf gsfname=wordfile
ctext=black cback=white gsfmode=replace
ftext=centb gsflen=80 display autofeed gunit=pct;
  goptions display;
  goptions reset = symbol gsfname = wordfile gsfmode = replace;

  proc greplay igout = work.mygraf tc = work.newtwo nofs;
tdef newtwo des = 'Survival Curves'
1/llx = 0 lly = 0
ulx = 0 uly = 100
urx = 100 ury = 100
lrx = 100 lry = 0;
template newtwo;
treplay 1:g1 1:g2;
run;

ERROR: Unable to create file U:\xx.emf
ERROR: Unable to initialize graphics device.

I would appreciate any suggestions with this issue.

Thanks
-N

3. GPLOT legend and device questions (repost)

4. GPLOT legend and device questions

Using the Graph-N-Go generated code below I have the following questions.
1 - The code did not build the legend statement.  How do I build the legend
so that all 3 vars (trn_nbr, cbk_nbr, vdn_nbr) are in a boxed legend
centered outside the right of the graph and each tick is on a seperate line?
2 - The scale for the axis1 is defaulting to 10, how do I display all
values?
3 - How do I scale axis2 and axis3 to 5?

/* BEGIN CODE */
/* Graph-N-Go SAS/Graph Code removed */
data temp;
  attrib Day length=8  format=Z2.;
  attrib TRN_NBR length=8 label="Messages" ;
  attrib CBK_NBR length=8 label="Call Backs" ;
  attrib VDN_NBR length=8 label="ACD Calls" ;
  input  Day= TRN_NBR= CBK_NBR= VDN_NBR=;
  datalines;
 Day=1 TRN_NBR=35 CBK_NBR=0 VDN_NBR=13
 Day=2 TRN_NBR=27 CBK_NBR=0 VDN_NBR=10
 Day=3 TRN_NBR=19 CBK_NBR=0 VDN_NBR=10
 Day=4 TRN_NBR=45 CBK_NBR=4 VDN_NBR=17
 Day=5 TRN_NBR=16 CBK_NBR=0 VDN_NBR=10
 Day=8 TRN_NBR=45 CBK_NBR=1 VDN_NBR=16
 Day=9 TRN_NBR=26 CBK_NBR=9 VDN_NBR=7
 Day=10 TRN_NBR=12 CBK_NBR=3 VDN_NBR=3
 Day=11 TRN_NBR=18 CBK_NBR=2 VDN_NBR=4
 Day=12 TRN_NBR=37 CBK_NBR=1 VDN_NBR=11
 Day=15 TRN_NBR=39 CBK_NBR=4 VDN_NBR=6
 Day=16 TRN_NBR=30 CBK_NBR=3 VDN_NBR=12
 Day=17 TRN_NBR=27 CBK_NBR=3 VDN_NBR=11
 Day=18 TRN_NBR=31 CBK_NBR=1 VDN_NBR=7
 Day=19 TRN_NBR=33 CBK_NBR=0 VDN_NBR=11
 Day=22 TRN_NBR=32 CBK_NBR=0 VDN_NBR=15
 Day=23 TRN_NBR=31 CBK_NBR=2 VDN_NBR=17
 Day=24 TRN_NBR=43 CBK_NBR=0 VDN_NBR=17
 Day=25 TRN_NBR=24 CBK_NBR=8 VDN_NBR=14
 Day=26 TRN_NBR=30 CBK_NBR=0 VDN_NBR=12
 Day=29 TRN_NBR=30 CBK_NBR=1 VDN_NBR=10
 Day=30 TRN_NBR=32 CBK_NBR=3 VDN_NBR=15
 Day=31 TRN_NBR=36 CBK_NBR=8 VDN_NBR=12
;
run;
%let path = %sysfunc(pathname(work))\;
/* Begin ODS output */
ods listing close;
ods html file="&path.Sample.htm" (title="Graph-N-Go Output")
           gpath="&path" gtitle gfootnote style=minimal;
/* Set the SAS/Graph options */
goptions reset=all border nodash
         ctext=CX000000 ftext="MS Sans Serif" htext=8 pt
         colors=(CX0000FF CXFF0000 CX008080 CX00FF00
                 CXFF00FF CXFFFF00 CX00FFFF CX800000
                 CX008000 CX800080 CX000080 CX808000
                 CXFFFFFF CX808080 CXC0C0C0 CX000000);
/* Set the SAS/Graph device driver */
* goptions device=JAVA xpixels=761 ypixels=489;

/* AXIS1 describes the X-axis (horizontal)      */
axis1 minor=none label=("Day") color=CX000000 offset=(5pct,5pct) ;

/* AXIS2 describes the left Y-axis (vertical)   */
axis2 minor=none label=none color=CX000000 offset=(5pct,5pct);

/* AXIS3 describes the right Y-axis (vertical)   */
axis3 minor=none label=none color=CX000000 offset=(5pct,5pct);

/* Each SYMBOL statement specifies style, size and */
/* color for markers and join lines for an overlay */
symbol1 line=1  width=1 cv=CX0000FF ci=CX0000FF value=Dot interpol=Join
height=6 pt;
symbol2 line=33 width=1 cv=CX008080 ci=CX008080 value=Triangle
interpol=Join height=6 pt;
symbol3 line=20 width=1 cv=CXFF0000 ci=CXFF0000 value=Square interpol=Join
height=6 pt;

proc gplot data=temp;
   plot TRN_NBR*DAY=1 / nolegend
      haxis=axis1 vaxis=axis2
      cframe=CXFFFFFF caxis=CX000000;
   plot2 VDN_NBR*DAY=2 CBK_NBR*DAY=3 / overlay legend=legend1 vaxis=axis3;
run;
quit;
/* Reset all graphics options */
goptions reset=all;
/* End ODS output */
ods html close;
ods listing;
/* END CODE */

5. gplot legend device type special characters question

6. Proc Gplot Unsupported device

Hello all,

When running my graphs I am getting this WARNING , I am getting same warning
when using SASEMF too, any Idea what device to use to get rid of this
warning

I am using sas 9.2


4951       *********************************
4952       * GPLOT
4953       *********************************;
4954       ods listing close;
4955       options orientation=landscape;
4956       ods rtf file="%qlowcase(&PROGNAME).rtf" style=styles.printer;
WARNING: Unsupported device 'PSLL' for RTF destination. Using default device
'SASEMF'.
NOTE: Writing RTF Body file: f-km-os.rtf
4957
4958       goptions    reset=all   rotate=landscape    device=png300
gsfname=grphfile    ctext=black
4959         cback=white    gsfmode=replace    ftext=duplex
ftitle=duplex    SIMFONT=duplex    gsflen=80
4960         xmax=9 inches ymax=7 inches    display autofeed gunit=pct;
4961

thanks
Sl

7. Device driver error/graphics device driver error (blue screen) 0x0 - Windows Update

8. Drawing 2 plots with gplot from a bash file

Hi all,

I'm trying to draw 2 plots from one bash file myBash.sh :

#! /bin/bash
gplot myPlot1 &
gplot myPlot2 &

I launch this bash file thanks to the command :
.. myBash.sh

I've put a dot before "myBash.sh" because I want my graphs to keep
being visible on my screen after the bash file execution is over.

My problem is that I never get the two plots on the screen at the same
time. The behavior of this bash file is a bit weird. When I launch it,
sometimes I get only one plot and sometimes I get two plots but twice
the same (instead of one of each i.e. myPlot1 and myPlot2) !!

Does anybody know a workaround to this problem.

Thanks a lot,

Cric