BookmarkSubscribeRSS Feed
wzl9527
Calcite | Level 5

Hi,I've got a problem with indent.

 

First picture is the result that I want.but it's done by proc report(from SAS Support Communities member  Cynthia_sas) Cynthia_sas_0-1615302532528.png
I need to use the  column width which in proc report ,and then use it to calculate  when to wrap lines and add space in front of new line.And wrap one line,then add one space;wrap two line,then add two space,as picture shows.This  is done whtnin SAS datasets before proc report.
 
For instance:col6 is a long text "This is a test for Text Wrapping with Indentation"
define col6 /display "Wrapping with Indentation" style(column)=[cellwidth=15% just=left asis=on] style(header)=[just=left];
 
the number of 15 pass to program ,then we need to figure out when to wrap lines and add space。

the dataset like below.

2EF2BB4A-23F3-4020-871F-3E97FC7CD0DC.png

F9C9BCFF-88DD-44aa-A0C2-438A0ABFB536.png

and different font sise have different column with in RTF,if possible,we could Including in this case. and if there is chinese,the situation become more complex
1 REPLY 1
andreas_lds
Jade | Level 19

Please post the code you have as text using "insert sas code" button and add data in usable form, so that we have something to work with.

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
  • 1 reply
  • 785 views
  • 0 likes
  • 2 in conversation