BookmarkSubscribeRSS Feed
DannyDsouza
SAS Employee
Hi,

One of my customer wants an customized document to be created of the following format

Dear Mr. XYZ (Customer Name)
(Address)


1) This is one of the first line.
2) This is one of the second line.




I tried using an ODS Rtf and within it using ODS Text and the necessary PROC,

I need guideness in figuring two things

1) Formatting of the text appearing in the Body of the report
2) how to insert dynamic value

Any help would be highly appreciated.

Regards
Danny
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
Share your code, please -- it will help you get the most effective replies. Also, provide info about your SAS environment, version, OS, local or remote SAS execution.

Also, you will find supplemental technical and conference reference documents at the SAS support http://support.sas.com/ website - either using the website SEARCH facility or consider the Google advanced search argument below:

ods rtf document formatting site:sas.com


Scott Barry
SBBWorks, Inc.
Cynthia_sas
Diamond | Level 26
Hi:
One possibility is to use SAS and Word together. Design your mail-merge document in Word -- with the constant text and mail-merge fields for the changing information and then use SAS to create the mail-merge data. The technique is described in general, in regard to labels in this paper:
http://rtsug.org/pdf/ZillionLabels.pdf

If you are happy with the ODS TEXT method for the "body" of the document-- then there are two methods for applying style characteristics to the text that you write with ODS TEXT --
1) use ODS ESCAPECHAR techniques or
2) change the USERTEXT style element in a style template

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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