BookmarkSubscribeRSS Feed
mlogan
Lapis Lazuli | Level 10

 

Hi All,

I can't keep this table from PROC REPORT and barchart from GCHART in one page. Can anyone tell me how I can do that. On my ODS PDF output the small table from PROC REPORT stays in the first page, but the GCHART goes to the next page occupying the whole page. Here is the code I was trying:

 

 

%LET TITLE4 =Test;

ODS PDF CLOSE;

OPTIONS NODATE NONUMBER;
ODS GRAPHICS / RESET=ALL;

ODS PDF 
FILE='C:\\Rpt01.PDF' STARTPAGE=NO;

    OPTIONS(PAGEBREAK='NO') STYLE=EGDEFAULT;

TITLE4 ls=1 font='helvetica/bold' height=12pt "&TITLE4.";

PROC GCHART DATA=Apple.Prop_Master;
WHERE Sol_RE_Title='Maritimes';
LABEL prop_status='Statuses';
VBAR Prop_Status / DISCRETE outside=PERCENT width=10 DESCENDING; 
RUN;
QUIT;
TITLE;



PROC REPORT DATA=Apple.Sol_assign;
WHERE  Sol_RE_Title='Maritimes';
COLUMN Sol_RE_Title Count;
DEFINE Sol_RE_Title / DISPLAY "Name";
DEFINE Count / DISPLAY "Portfolio Size";
RUN;


TITLE;
ODS _ALL_ CLOSE;

 

3 REPLIES 3
Reeza
Super User
Is the table big enough to fit on the same page? Do you get an error anywhere? I'm getting an error on this line:

OPTIONS(PAGEBREAK='NO') STYLE=EGDEFAULT;
mlogan
Lapis Lazuli | Level 10

Hi All,

I can't keep this table from PROC REPORT and barchart from GCHART in one page. Can anyone tell me how I can do that. On my ODS PDF output the small table from PROC REPORT stays in the first page, but the GCHART goes to the next page occupying the whole page. Here is the code I was trying:

 

%LET TITLE4 =Test;

ODS PDF CLOSE;

OPTIONS NODATE NONUMBER;
ODS GRAPHICS / RESET=ALL;

ODS PDF 
FILE='C:\\Rpt01.PDF' STARTPAGE=NO;

    OPTIONS(PAGEBREAK='NO') STYLE=EGDEFAULT;

TITLE4 ls=1 font='helvetica/bold' height=12pt "&TITLE4.";

PROC GCHART DATA=Apple.Prop_Master;
WHERE Sol_RE_Title='Maritimes';
LABEL prop_status='Statuses';
VBAR Prop_Status / DISCRETE outside=PERCENT width=10 DESCENDING; 
RUN;
QUIT;
TITLE;



PROC REPORT DATA=Apple.Sol_assign;
WHERE  Sol_RE_Title='Maritimes';
COLUMN Sol_RE_Title Count;
DEFINE Sol_RE_Title / DISPLAY "Name";
DEFINE Count / DISPLAY "Portfolio Size";
RUN;


TITLE;
ODS _ALL_ CLOSE;
Reeza
Super User
FYI - I've moved your posts to the ODS reporting forum, as that's more relevant and combined your double posts into one. Not sure if that was intentional on your part or not.

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 1125 views
  • 0 likes
  • 2 in conversation