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