The SAS Output Delivery System and reporting techniques

Title(has #byval) is not printed in the 2nd page when the report is printed using ODS Layout

Reply
Contributor
Posts: 32

Title(has #byval) is not printed in the 2nd page when the report is printed using ODS Layout

Hi,

 

I have 2 titles. One is coded outside ODS LAYOUT and another one is codes in ODS LAYOUT using #byval function.

 

Proc Report is creating the o/p in multiple pages for the by value sex=f. But the title is printed only in first page.

 

For my requirement, I need to print the title with #byval coded inside ods layout in 2nd page as well.

 

I am attaching sample sas code, log and report(by value F is not printed in 2nd page) for this issue.

 

Please help me in printing the title with byval in 2nd page,3rd page...in case of multiple page report for the same byval.

 

Thanks,
Sampath

Contributor
Posts: 32

Re: Title(has #byval) is not printed in the 2nd page when the report is printed using ODS Layout

I am attaching sample sas code, log and report(by value F is not printed in 2nd page) for this issue.

Contributor
Posts: 32

Re: Title(has #byval) is not printed in the 2nd page when the report is printed using ODS Layout

Super User
Posts: 1,111

Re: Title(has #byval) is not printed in the 2nd page when the report is printed using ODS Layout

As per the code you mentioned title 'sampath' and again title1 "#byval(SEX)".  Could you please try changing it to title2 "#byval(SEX)".

 

Thanks,
Jag
Contributor
Posts: 32

Re: Title(has #byval) is not printed in the 2nd page when the report is printed using ODS Layout

Hi,

 

This #byval is resolved only inside ODS layout .

 

If we code outside ODS layout, it wont be resloved.

 

Whatever code given is just a sample code. I want to replicate this logic in my actual code.

 

Thanks,

Sampath

Ask a Question
Discussion stats
  • 4 replies
  • 327 views
  • 0 likes
  • 2 in conversation