BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi Everyone!
I was wondering if there was a way to retain an indentation when text is wrapping due to a FLOW statement in Proc Report. For example, I have the following text:
System Organ Class
Preferred Term
Infections and infestations
Upper respiratory tract
infection


What I would like to do is have the word "infection" retain the same indentation as "Upper". Please bear in mind that all of the text in this column is contained in one variable, and that we are not using ODS.
If anyone has any simple solutions to this problem, please let me know.

Thanks in advance!!

-Phil
4 REPLIES 4
deleted_user
Not applicable
Sorry, it seems that when I posted this, all of my indentations disappeared!!

The "Preferred Term" and "Upper respiratory tract" should have been indented by 3 spaces. The "Infections and infestations" and "infection" have no indentation. Sorry about that!!

-Phil
Cynthia_sas
Diamond | Level 26
Hi:
If you type these special PRE "tags"
[ -pre- ]
..code sample or output sample goes here...
[ -/pre- ]

around your code or example (but without the spaces or hyphens), you can maintain indentation in the forum postings:
[pre]
System Organ Class
Preferred Term
Infections and infestations
Upper respiratory tract
infection
[/pre]

Is this what you described?

It's too bad that you don't want to use ODS, because in ODS, there are ways to force a line break (instead of using FLOW) and there are ways to specify an INDENT.

You might be able to play around with WIDTH= for LISTING and possibly try for the WIDTH to fall in the right place so the FLOWed lines appear to be indented. Your best bet for an answer may be to see whether Tech Support has a workaround. Sadly, I don't think there is one if you are NOT using ODS.

cynthia
deleted_user
Not applicable
Cynthia,
Thanks for the tip! I will use that the next time I post 🙂

That is exactly what I meant to have appear. It's not that I don't want to use ODS, but rather I was placed on a project that is wrapping up and did not use ODS, and they do not want to change it at this point. The WIDTH= won't really work in this case, because there are many instances of this, and all have different lengths.

Thanks anyway for looking into it! I will check with tech support.

-Phil
Cynthia_sas
Diamond | Level 26
Hi, Phil:
Bummer!
cynthia

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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
  • 3703 views
  • 0 likes
  • 2 in conversation