The SAS Output Delivery System and reporting techniques

Cannot get ODS startpage=new unless I remove BODYTITLE

Reply
Contributor
Posts: 27

Cannot get ODS startpage=new unless I remove BODYTITLE

I don't often output to RTF output, and perhaps this is an easy question, but I've written a program (attached) that output two tables to an RTF document.  I have a ODS RTF STARTPAGE=NOW in the code to force a page-break between the two Proc Report outputs, but it doesn't work unless I take the BODYTITLE option out of the initial ODS RTF statement.  Can someone explain to me why that happens and what I need to do to get it to work properly?  

 

SAS 9.3 on Windows 7

 

Thanks so much,

 

Steve 

Attachment
Grand Advisor
Posts: 9,567

Re: Cannot get ODS startpage=new unless I remove BODYTITLE

ODS RTF STARTPAGE=PROC      ?

Contributor
Posts: 27

Re: Cannot get ODS startpage=new unless I remove BODYTITLE

No, I get a syntax error. 

 

6748 ods rtf startpage=proc ; * force a pagebreak ;

----

22

76

ERROR 22-322: Syntax error, expecting one of the following: BYGROUP, NEVER, NO, NOW, OFF, ON, YES.

ERROR 76-322: Syntax error, statement will be ignored.

 

 

Contributor
Posts: 62

Re: Cannot get ODS startpage=new unless I remove BODYTITLE

Does this describe the problem you are having?

 

http://support.sas.com/kb/41/165.html

 

Norman.

Norman.
SAS 9.4 (TS1M0) X64_7PRO WIN 6.1.7601 Service Pack 1 Workstation

Contributor
Posts: 27

Re: Cannot get ODS startpage=new unless I remove BODYTITLE

Thanks, but no.  I'm not using ODS Select or Exclude.

Grand Advisor
Posts: 10,196

Re: Cannot get ODS startpage=new unless I remove BODYTITLE

I recommend writing a very small program, using either a SAS supplied data set or build one with a data step, and minimal code to provide an example of what happens with your system.

 

While it shouldn't be part of the problem, all of the style overrides and macro variables and no date make executing your code problematical for testing

Ask a Question
Discussion stats
  • 5 replies
  • 449 views
  • 0 likes
  • 4 in conversation