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

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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