The SAS Output Delivery System and reporting techniques

Title using pretext in style option of proc report

Reply
Contributor
Posts: 25

Title using pretext in style option of proc report

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
SAS Super FREQ
Posts: 8,739

Re: Title using pretext in style option of proc report

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
Contributor
Posts: 25

Re: Title using pretext in style option of proc report

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
Super User
Posts: 9,662

Re: Title using pretext in style option of proc report

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;
Contributor
Posts: 25

Re: Title using pretext in style option of proc report

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
Occasional Contributor
Posts: 6

Re: Title using pretext in style option of proc report

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

SAS Super FREQ
Posts: 8,739

Re: Title using pretext in style option of proc report

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

Ask a Question
Discussion stats
  • 6 replies
  • 1468 views
  • 0 likes
  • 4 in conversation