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-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
  • 3 replies
  • 2063 views
  • 1 like
  • 2 in conversation