BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I am creating a report with multiple graphs on multiple pages. I have used this code many times and for some reason it is not working now. I am working inSAS Enterprise Guide 4.1 (4.1.0.516). My code is pasted below. I want to start a new page with a new graph and I am using ODS PDF StartPage=Now. The new page is not created and the graph overlays my graph on page 1.


goptions reset=all;

%let mygopt=Reset=Global;

%Let TitleTxtHt1 = .175 in;
%Let TitleTxtHt2 = .150 in;
%Let YAxisLabelHt = .150 in;
%Let YAxisValueHt = .110 in;
%Let XAxisValueHt = .110 in;
%Let FootnoteTxtHt = .080 in;
%Let FootnoteTxtHt1 = .080 in;
%Let FootnoteTxtHt2 = .080 in;
%Let SymbolWidth1 = 2;
%Let SymbolWidth2 = 3;
%Let LegendLabelHt = .150 in;
%Let LegendValueHt = .150 in;
%Let VBarSpace = 3;

Options
Missing = ' '
LineSize = 256
nonumber
nodate
Spool
orientation=landscape
papersize=letter
NOSymbolgen
NOMprint
NOMlogic
;



ODS NoResults;
ODS Listing Close;
ODS EscapeChar='^';
ODS PDF
StartPage=Never NoTOC
uniform;
quit;


GOptions
Reset = All
Device=SASPRTC
Border
CText = Black
FText = "Helvetica"
HText = 2.0
;

/****************************************************************
* Build Page titles for page 1.
****************************************************************/
Title;
Footnote;
Footnote1;
Footnote2;
Footnote3;

%include "&inclpath./distribution_by_gender_g1.sas";

ODS PDF StartPage=Now;

%include "&inclpath./distribution_by_ageband_male.sas";


ODS PDF Close;
ODS Listing;
1 REPLY 1
Cynthia_sas
SAS Super FREQ
Hi:
I'm wondering whether the code that you're including has any ODS PDF invocation (OPEN/CLOSE) statements. If ODS PDF is NOT open when you issue the STARTPAGE=NOW, then you would experience the symptom you describe.

Another thing to check is whether there's a stray ODS _ALL_ CLOSE statement in any of the included code. Perhaps your best bet for help with this specific question is to try Tech Support, as they can look at all the code in your included files to see the whole picture of ODS statements that are being issued. For example, where is your ODS PDF FILE=, where is your ODS PDF CLOSE??

cynthia

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 1 reply
  • 952 views
  • 0 likes
  • 2 in conversation