BookmarkSubscribeRSS Feed
rab24
Calcite | Level 5
I am doing what I think is a simple Proc Print of a long textual field into an HTML file. When I first started, the HTML source code would include a nowrap command so the text would continue going to the right.

Later, I copied my code into another code window, and the HTML output started started wrapping to the HTML viewer window automatically as if someone was removing the nowrap command for me.

Now that I have copied the same piece of code into enough other projects, I am seeing cases where the text will not wrap again. The stated ODS and Proc Print commands are the same. I have even run the codes where they appear in the same EG4 viewer window, and the outputs are still different.

Does anyone know what might cause this difference? I am leaning toward something different in the datafiles I am reporting on rather than my Proc Print commands, but I don't have any idea where to start looking if that is the case.
2 REPLIES 2
David_SAS
SAS Employee
By nowrap, I assume that you mean whitespace=nowrap. I wonder where that is coming from. ODS supports the whitespace style attribute, but I do not believe that it is specified by default in the software. A procedure or custom style would have to specify it, in which case you should always get it.

-- David Kelley, SAS
rab24
Calcite | Level 5
I don't know what the whitespace=nowrap is.

At the beginning of each record I show with Proc Print, these are the respective HTML source codes:

Undesired:


Desired that I can't reliably replicate:

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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
  • 2 replies
  • 916 views
  • 0 likes
  • 2 in conversation