BookmarkSubscribeRSS Feed
craigmcn
Calcite | Level 5
I didn't find anything in any other threads, but I might have missed it.

I'm trying to use multiple lines of text in my header in WRS 4.3, but the carriage return is stripped when I save my changes.

I tried \n and Ascii CR (0013), as well as the Enter key, but nothing stayed.

Any ideas?
8 REPLIES 8
Nithin
Calcite | Level 5
Hey,

I had issues with Header/Footers too. I would suggest you to use Text box objects in report and position them to look as Header/Footer.

-Nithin
craigmcn
Calcite | Level 5
Thanks, Nithin. I may end up doing that. I just hate that it's such a "hacky" solution and can add a maintenance burden to upgrades.
Jenn2
SAS Employee
From Mudit:

Just pressing Enter or Return key between the lines should help!! I tried it in WRS 4.3 here, and it worked.
Jenn2
SAS Employee
From Angela,
The user must be experiencing a bug somewhere. I was able to do the same thing and the system didn’t strip my carriage returns.

Note that for the user – his are getting stripped for some reason.
Jenn2
SAS Employee
Yes, I found one before I replied. If you copy and paste TEXT containing carriage returns from some other source like notepad then WRS strips off those characters. I believe user is doing something similar.

DEFECTS FILED

In this scenario, user should replace the “Carriage” characters with the “Return” key in WRS header string in order to have multiple lines.
Jenn2
SAS Employee
From Cynthia,
To me, the question is – when the SASReport XML version of the report is saved and we are no longer in the Report Viewer, what happens to the manually entered CR??? Does the manually entered carriage return “come back” when you reopen the file or is it gone again???? If the manually entered carriage return is still there when you reopen the report (after saving it), then I guess you’d need to reverse engineer the SAS Report XML of the XML –with the CR – to see what magic XML is in SASReport XML.

If the carriage return is gone when you reopen the SASReport XML, then that implies to me that the saving process (when translating back to SASReport XML) does something to the manually entered CR.

cynthia
craigmcn
Calcite | Level 5
Thanks Jenn2 for all the updates.

I'm pretty sure I tested it in a number of ways and always had my CRs stripped, but now it only seems to be when pasting from Notepad, as noted above.

When I try it now, just pressing when I need a CR, it works like a charm. I even tried it in Internet Explorer and Firefox, just to make sure it wasn't a browser issue.
Madelyn_SAS
SAS Super FREQ
Just including the following note here for reference

http://support.sas.com/kb/39/593.html

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 8 replies
  • 1455 views
  • 0 likes
  • 4 in conversation