The SAS Output Delivery System and reporting techniques

ODS Layout ods region y= not working

Accepted Solution Solved
Reply
New Contributor JT2
New Contributor
Posts: 2
Accepted Solution

ODS Layout ods region y= not working

Hi SAS,

I'm currently using SAS Eguide Version 5.1 (32bit). I have two issues below.

 

1. I have an issue positioning my graph. The x= seem to work but the y= is not working. I can't get my graph to move down the page. Please help. Half of the code below.

 

The ODS region x=0in y=0in height=3in width=4in;

 

Proc gplot data= work.a;

 

Plot distinct_a * mth = yr /

 

VAXIS=AXIS1

 

HAXIS=AXIS2

 

FRAME LEGEND=LEGEND1;

 

RUN;QUIT;

 

2. Can ODS layout handle GPLOT breakdown by multiple graphe? Code example below. There are three multiple line chart in the syntax below.

 

Proc gplot data= work.c

nocache;

 

Plot distinct_a * mth = yr /

 

VAXIS=AXIS1

 

HAXIS=AXIS2

 

FRAME LEGEND=LEGEND1;

 

by rule_type;

 

RUN;QUIT;

 


Accepted Solutions
Solution
‎06-01-2017 01:40 AM
Super User
Posts: 10,500

Re: ODS Layout ods region y= not working

GPLOT produces device based graphics output and I am not sure how well specific devices (read graphic file formats) interact with ODS layout. I would strongly suggest trying this with with SGPLOT. Note that when you specify and ODS region that is smaller than the size currently used by GOPTIONS Hsize/Vsize and/or Hpixels/Vpixels is likely to cause all sorts of conflicts as the gplot output is build using the goptions size information and then likley trying to "fit" into the size of the ODS area.

View solution in original post


All Replies
Solution
‎06-01-2017 01:40 AM
Super User
Posts: 10,500

Re: ODS Layout ods region y= not working

GPLOT produces device based graphics output and I am not sure how well specific devices (read graphic file formats) interact with ODS layout. I would strongly suggest trying this with with SGPLOT. Note that when you specify and ODS region that is smaller than the size currently used by GOPTIONS Hsize/Vsize and/or Hpixels/Vpixels is likely to cause all sorts of conflicts as the gplot output is build using the goptions size information and then likley trying to "fit" into the size of the ODS area.

New Contributor JT2
New Contributor
Posts: 2

Re: ODS Layout ods region y= not working

Thank you. SGplot is definitely the way to go.

 

In terms of second q, i also used sgplot with a where statement to breakdown my table into three graphs.

 

 

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 165 views
  • 0 likes
  • 2 in conversation