06-09-2017 11:39 AM
I have a dataset in which one particular column has the values like below
and I want to generate an excel report in which these values from the said column should look like below.
Could you please help me here. Many thanks in advance.
06-09-2017 11:45 AM
Flyover text is text that shows up when you hover over the cell, ie Excel Comments. Is that what you're trying to modify here or the value in the cells?
I'm not understanding your subject with how you've phrased the question.
If you're modifying values in the cell, see the answers here:
06-09-2017 11:58 AM
Sorry for the confusion.
I want to modify the values in the cells. So that when the report is gets created, the values are displayed as per the screenshot above.
I am using SAS 9.2.
06-09-2017 12:13 PM
Ok, did the solution in the link not work for you?
You put the '0d0a'x (see below) in the location where you want a carriage return. When you export to Excel it should resolve as the carriage return. You're likely exporting to an XLS file so how you export is different but I suspect everything else is the same. If this does not work, post your code, log and a screenshot of your results.
06-09-2017 11:40 PM
Use ~n as your return characters.
Firstly, change your text into as :
Then, output it into a excel file.
ods excel file='......';
ods excel close;