BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
SASFanTodd
Calcite | Level 5

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.

1 ACCEPTED SOLUTION

Accepted Solutions
data_null__
Jade | Level 19

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

3 REPLIES 3
data_null__
Jade | Level 19

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;
  
SASFanTodd
Calcite | Level 5

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!

data_null__
Jade | Level 19

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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