Hi All,
I have 10 customers. I want to display each customer transaction in single page RTF. How to achive that. could you help me.
Have you tried a basic proc print, with BY groups?
This is a Letter which has to be automated. Body of letter is same but customer name is different and every thing has to sent to customer in single RTF file.
Why not use Word MailMerge? It's built in and designed for exactly this.
in general before automating a process you need a working version, do you have that in place?
Startpage=yes allows you to control the page breaks.
Yes I have body of the letter only need to add the customer details which is sas data set.
Can yo describe your process in detail, what you have and what's missing/need.
You can export SAS dataset and use Word directly. This could be automated via VBScript.
Or you could try and do it all in SAS.
I have a body of letter and sas data set which contains customer names and there details (say address).
My requirement is in need to place the name of customer details along with body. I'm able to create for single customer but the problem I'm facing is not able to print for more than one customer in single word file.
Below the name and address I have take as input from SAS data set and populate. I need to create all the letters in single word file.
ex:
To,
<Name>
<Address>
Dear Sir,
<Body>
Regards,
ABC Bank
I'd still recommend mailmerge.
Ok, put all your information in a data set, including the body of the letter and then use a custom data step that prints to the RTF doc to generate your letter.
Ie data set includes variables:
name address body
You may need to split the body into multiple variables to get the report the way you want.
Then use a BY Group per name/address as indicated earlier to get one page per report.
Thank you Reeza for the Tip will try and let you know.
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Lock in the best rate now before the price increases on April 1.
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.
Ready to level-up your skills? Choose your own adventure.