BookmarkSubscribeRSS Feed
AKHILA
Obsidian | Level 7
How to customise columns in proc report
I want my report to be looks like , (to leave some space after each heading.)
...................
Heading 1
aaa
Bbb
Ccc
Heading 2
Ddd
Eeee
Ffff
Heading 3
Hhhh
Iiii
Jjj.
4 REPLIES 4
andreas_lds
Jade | Level 19

Sorry, i can't see the extra-space you want.

Are you creating text, rtf, html or pdf output?

Have you checked the style-option?

AKHILA
Obsidian | Level 7
Rtf file
Ksharp
Super User

Add some 'blank' character like TAB.

 

Heading 1||'09'x||'09'x

 

 

or use 

style={cellwidth=10cm};

Cynthia_sas
SAS Super FREQ

Hi:

  PROC REPORT typically only puts HEADER rows at the top of the report. There would not typically be a Heading 2 or Heading 3 in PROC REPORT output unless you manipulated your data in some way.

 

  What PROC REPORT code are you using? Can you post some test data? Without seeing your DATA, it's hard to visualize what PROC REPORT code is going to give you Heading 2 and Heading 3 on the report unless you use COMPUTE blocks of some kind.

 

  For example, in this example, I create a text string called Heading 1 or Heading 2 based on the value of the PRODUCT variable and use a COMPUTE before block to write out the text string.

heading_rtf.png

 

  However, without seeing more of your data and YOUR code, it is impossible to say how to add more "space" to the report.

 

Cynthia

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
  • 4 replies
  • 453 views
  • 0 likes
  • 4 in conversation