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.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

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