BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
KevinQin
Obsidian | Level 7
Hi,
I am developing some reports and find no way to remove byline labels
in contents file.
The system option nobyline can work only for body file.

Although I can post-process the contents file to remove them, it is
ugly.
I am wondering whether there is a easy way to solve the byline labels
issue?

Any comment will be appreciated.

-Kevin
1 ACCEPTED SOLUTION

Accepted Solutions
Cynthia_sas
Diamond | Level 26

:Hi:
It depends on what your procedures are. One solution is to put your procedure into a Macro program and invoke the macro program one time for each by group. This gives you the chance to "flatten" the links in the Table of Contents.

The use of ODS PROCLABEL and/or CONTENTS= for REPORT, PRINT or TABULATE do give you a lot of control -- however, none of them will give you control over the BYLINE.

Another option is to use the ODS DOCUMENT facility, with PROC DOCUMENT to rearrange, rename and then replay your output objects. Some examples of ODS DOCUMENT are listed in these blog posts.

cynthia

View solution in original post

4 REPLIES 4
Cynthia_sas
Diamond | Level 26

:Hi:
It depends on what your procedures are. One solution is to put your procedure into a Macro program and invoke the macro program one time for each by group. This gives you the chance to "flatten" the links in the Table of Contents.

The use of ODS PROCLABEL and/or CONTENTS= for REPORT, PRINT or TABULATE do give you a lot of control -- however, none of them will give you control over the BYLINE.

Another option is to use the ODS DOCUMENT facility, with PROC DOCUMENT to rearrange, rename and then replay your output objects. Some examples of ODS DOCUMENT are listed in these blog posts.

cynthia

KevinQin
Obsidian | Level 7
Cynthia,
You are right that ODS DOCUMENT can do the job.
Thank you very much.

-Kevin
eshupp
Obsidian | Level 7
I have the same question and when i follow either of the links in this solution they seem to be missing.
Cynthia_sas
Diamond | Level 26

Hi:

  I would first try

Options nobyline;

 

to see whether that controls the BYLINE enough by just turning it off. As for the old (2008 or earlier) links, I'm not sure whether those older postings are still around.

 

  But the point of the older postings was that ODS DOCUMENT might give you the control you want IF you want to rearrange and replay the output. If all you want to do is turn off the BYLINE, then ODS DOCUMENT is overkill for that.

 

Cynthia

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 2090 views
  • 0 likes
  • 3 in conversation