The SAS Output Delivery System and reporting techniques

ODS StartPage = Now (This is not working)

Reply
N/A
Posts: 0

ODS StartPage = Now (This is not working)

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;
SAS Super FREQ
Posts: 8,745

Re: ODS StartPage = Now (This is not working)

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
Ask a Question
Discussion stats
  • 1 reply
  • 125 views
  • 0 likes
  • 2 in conversation