如何在DataStage中使用引号插入值?

问题描述 投票:0回答:1

您好,由于源文件包含多个双引号,我一直遇到问题。

我一直试图弄清楚它的状态,并且我目前在转换器阶段使用正则表达式

这是源(csv)

“错误-设置Bp自动风险分类失败日志#216079 s#err.mba $ org_struct.oe#predecessor_oe:i_oe ............................... .... [63888] i_oe_type_id .................. [6299] i_eff_date .................... [18-APR-2019] i_oe_level .................... [5] / ORA-20003:日志严重错误(216078):ORA-21780:最大数量超过了对象持续时间。ORA-06512:位于““” K.ERR#“”“]

这是我的变形金刚

Convert('"','', DSLink5.REMARK)

我用正则表达式得到的结果

错误-设置Bp自动风险分类失败日志#216079 s#err.mba $ org_struct.oe#predecessor_oe:i_oe ................................ ... [63888] i_oe_type_id ......... [6299] i_eff_date ....................... [18-APR-2019] i_oe_level .................... [ 5] / ORA-20003:日志严重错误(216078):ORA-21780:超出了对象持续时间的最大数量。 ORA-06512:在K.ERR#

我想要的结果

错误-设置Bp自动风险分类失败日志#216079 s#err.mba $ org_struct.oe#predecessor_oe:i_oe ................................ ... [63888] i_oe_type_id ......... [6299] i_eff_date ....................... [18-APR-2019] i_oe_level .................... [ 5] / ORA-20003:日志严重错误(216078):ORA-21780:超出了对象持续时间的最大数量。 ORA-06512:位于“ K.ERR#”

csv etl datastage ibm-infosphere
1个回答
0
投票

因此,首先尝试将“”替换为“对吗?

Convert('""','"', DSLink5.REMARK)

如果您的来源中也有“”“,则可能要添加更多替换/转换选项

© www.soinside.com 2019 - 2024. All rights reserved.