SAS DDE写入hpyerlink到一个单元失败

我想写一个单元格的超链接工作,但失败了。

filename xlSheet1 dde "Excel|&ddestr.Report!R&insertpos.C1:R&insertpos.0C8"; data _null_; file xlSheet1; e = '=HYPERLINK("c:\work\test.txt","FAILED")'; put e; run; 

但是只能写string的第一部分为“= HYPERLINK(”c:\ work \ test.txt“,”,第二个参数丢失,链接也可以,但是只显示0。

怎么修? 我希望他们在一个单元格中的一切。

谢谢!

从您的问题中不清楚您使用的最外层引号是单引号还是双引号,因为您在代码段中使用了单引号,而在下面的文本中使用了双引号。 如果您只使用双引号,请尝试以下操作,看看它是否适用于您:

 filename xlSheet1 dde "Excel|&ddestr.Report!R&insertpos.C1:R&insertpos.0C8"; data _null_; file xlSheet1; e = "=HYPERLINK(""c:\work\test.txt"",""FAILED"")"; put e; run;