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-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

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