【问题标题】:Sas Excel output column value start with =Sas Excel 输出列值以 = 开头
【发布时间】:2022-12-09 16:44:13
【问题描述】:

2022 年 12 月 8 日,晚上 9:16 任何人都可以建议在 Excel 输出中包含带有空格字符的列 .. 输出文件被损坏,因为列值以 = 符号开头的某些行其他具有 + 或其他空格字符

具有列值的 Excel ods 输出以特殊字符开头,如 += 等。

【问题讨论】:

  • 欢迎来到 StackOverflow。请提供Minimal Reproducible Example。你看过ODS ESCAPECHAR吗?
  • 不想跳过此列中的任何值...只是 Excel 将该值视为公式
  • @RaviSharma 您仍然需要提供一个最小可重现示例。

标签: excel sas char proc ods


【解决方案1】:

使用选项(formulas='off')

例子:

data have;
  cell = '=hello there';
run;

ods excel file='funky-town.xlsx' options(formulas='off');

proc print data=have;
run;

ods excel close;

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-07-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-12-03
    相关资源
    最近更新 更多