The SAS Output Delivery System and reporting techniques

Customized word document report

Reply
SAS Employee
Posts: 8

Customized word document report

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
Super Contributor
Super Contributor
Posts: 3,174

Re: Customized word document report

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

Re: Customized word document report

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
Ask a Question
Discussion stats
  • 2 replies
  • 120 views
  • 0 likes
  • 3 in conversation