BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
t_ar_taat
Quartz | Level 8

When dde "output" from sas to EXCEL, looking for a method of outputting data to be a new line in the EXCEL file.

 

For example, when I put "ABC" (actually A??B??C) to excel, and open the EXCEL , I want to see it as

A

B

C

kaigyou_abc.JPG

 

"??" is a special code? "'0A'x"?

 

In the Internet,there is a information about How to "read" the EXCEL which including the new line code can be found , but there was no way of "output" or "export". please let me you know with your sample code?

 

Sincerely,t_ar_taat

1 ACCEPTED SOLUTION

Accepted Solutions
t_ar_taat
Quartz | Level 8

It partly depend on EXCEL's Formatting of cell,

 

 

var= '"' || "a" || '0a'x || "b" || '"';

put var;

 

 

 

View solution in original post

3 REPLIES 3
RW9
Diamond | Level 26 RW9
Diamond | Level 26

What is the code your using to put data out to DDE?  It should be just a matter of sending that special character as well.  However I will point out that DDE is well out of date (17years) and is not supported as such any more, so I would really suggest using one of the many other solutions to get data to Excel:
tagsets.excel

libname excel

proc export

CSV

SAS for Office Addin

Etc. 

t_ar_taat
Quartz | Level 8

HI,RW9

Thank you for your comment.

Yes,actually "DDE" is old.I should get away from DDE.

By the way I just find out hint in stackoverflow.

https://stackoverflow.com/questions/32194947/sas-dde-write-multiple-line-in-cell

t_ar_taat
Quartz | Level 8

It partly depend on EXCEL's Formatting of cell,

 

 

var= '"' || "a" || '0a'x || "b" || '"';

put var;

 

 

 

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 3104 views
  • 1 like
  • 2 in conversation