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
Diamond | Level 26

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

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1047 views
  • 0 likes
  • 4 in conversation