Create a telephone/address directory report - not label format

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 9
Accepted Solution

Create a telephone/address directory report - not label format

I would like to create a telephone address directory report that looks similar to what is attached (Directory.pdf).  If possible we would like the names to be in order vertically per page.  All I've been able to find is "proc forms" and put it in label like format which sorts going across and isn't quite as intricate as we would like the report to look.  Any insight/help would be greatly appreciated.


Accepted Solutions
Solution
‎03-26-2013 05:04 PM
Respected Advisor
Posts: 3,799

Re: Create a telephone/address directory report - not label format

Posted in reply to SASFanTodd

You will probably want to tranpose your data into rows such the each directory entry consists of 3 or 4 rows.  Show some of your data then it will be easier to make example.

View solution in original post


All Replies
Respected Advisor
Posts: 3,799

Re: Create a telephone/address directory report - not label format

Posted in reply to SASFanTodd

RTF has COLUMNS option.  That and some inline formatting to get the bolding and indentation and you should have it.  Probably want PROC REPORT more options than PROC PRINT.

ods rtf file='~/columns.rtf' columns=4;
proc print data=sashelp.shoes;
   var p:;
   run;
ods rtf close;
  
Occasional Contributor
Posts: 9

Re: Create a telephone/address directory report - not label format

Posted in reply to data_null__

Thank you data_null_;

This was a helpful start however I have another question.  This may be obvious so please excuse me as I'm still rather new to the SAS language.  In using PROC REPORT as you suggest or even PROC PRINT, how do you get the values of the different address fields to follow each other in the 1 column.  Your example only move the Product field to the report.

Thanks again in advance!

Solution
‎03-26-2013 05:04 PM
Respected Advisor
Posts: 3,799

Re: Create a telephone/address directory report - not label format

Posted in reply to SASFanTodd

You will probably want to tranpose your data into rows such the each directory entry consists of 3 or 4 rows.  Show some of your data then it will be easier to make example.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 3 replies
  • 331 views
  • 3 likes
  • 2 in conversation