BookmarkSubscribeRSS Feed
Yasu
Fluorite | Level 6
Hello,

I'm tryng to add titles in the BODY area by using 'pretext' in style option of proc report.
The sample code is shown below.

ods rtf file="table.rtf" style=journal;
options nodate nonumber;
proc report data=sashelp.class nowd style={pretext=" Title" };
columns name sex age ;
define name / display "Name" ;
define sex / display "Gender";
define age / display "Age" ;
run;
ods rtf close;


The code works correctly under SAS ver.9.1.3, however it doesn't seem to work well under SAS ver.9.2.

The output generated under ver.9.2. is like this,

Title ________


I'd like to delete "underline" next to "Title" which isn't shown in the output generated under SAS ver.9.1.3.
Does anyone have an idea how to handle this problem?


Thanks in advance.

Yasu

Message was edited by: Yasu

Message was edited by: Yasu Message was edited by: Yasu
6 REPLIES 6
Cynthia_sas
SAS Super FREQ
Hi:
If you are observing a difference between SAS 9.1.3 and SAS 9.2 behavior when using the same code, then you should open a track with Tech Support. They have both version of SAS available to test with and can help you come to a resolution.

To open a track with Tech Support, fill out the form at this link:
http://support.sas.com/ctx/supportform/createForm

cynthia
Yasu
Fluorite | Level 6
Dear cynthia,

Thank you for your prompt reply.
And I'm sorry for my poorly-written question.

As you guess, the output under SAS 9.2 is differ from that under SAS 9.1.3 even when using the same code. And I have no idea why it is and how to handle this problem.

I'll contact Tech Support.

Thanks and regards,

Yasu
Ksharp
Super User
If you can ,changing the style can solve your problem.
[pre]
ods rtf file="c:\temp\table.rtf" style=default;
title ' ';
options nodate nonumber;
proc report data=sashelp.class nowd style={pretext="title" };
columns name sex age ;
define name / display "Name" ;
define sex / display "Gender";
define age / display "Age" ;
run;
ods rtf close;
Yasu
Fluorite | Level 6
FYI

I inquired about this problem at SAS tech support.

According to the response from tech support, this trouble is a kind of bug but can be avoided by using "ODS TAGSETRTF" instead of "ODS RTF".

Yasu
averageuser
Calcite | Level 5

I am having the same problem with 9.3. Need to solve this anyhow. I am not familiar with ODS TAGSET.RTF.

Cynthia_sas
SAS Super FREQ

Hi:

  If you are seeing differences between 9.2 and 9.3 with the same code, then you will also want to work with Tech Support (as the original poster did) to resolve your issue. There is documentation on the support.sas.com web site about using TAGSETS.RTF and there are previous forum postings about using TAGSETS.RTF.

  To open a track with Tech Support, fill out the form at this link:

http://support.sas.com/ctx/supportform/createForm

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