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;
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;
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!
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.