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
SAS Super FREQ

: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
SAS Super FREQ

: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
SAS Super FREQ

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

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
  • 4 replies
  • 1184 views
  • 0 likes
  • 3 in conversation