The SAS Output Delivery System and reporting techniques

Retaining Indentation with FLOW in PROC REPORT

Reply
N/A
Posts: 0

Retaining Indentation with FLOW in PROC REPORT

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
N/A
Posts: 0

Re: Retaining Indentation with FLOW in PROC REPORT

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
SAS Super FREQ
Posts: 8,743

Re: Retaining Indentation with FLOW in PROC REPORT

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
N/A
Posts: 0

Re: Retaining Indentation with FLOW in PROC REPORT

Cynthia,
Thanks for the tip! I will use that the next time I post Smiley Happy

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
SAS Super FREQ
Posts: 8,743

Re: Retaining Indentation with FLOW in PROC REPORT

Hi, Phil:
Bummer!
cynthia
Ask a Question
Discussion stats
  • 4 replies
  • 323 views
  • 0 likes
  • 2 in conversation