我们可以在 DataStage 中创建和使用临时表吗?

Can we create and use Temporary tables in DataStage?

是否可以在 DataStage 的 ODBC 连接器阶段创建 and/or 使用临时 tables?

我试图在填充 Temp table 后立即在连接语句中使用 #Temp table 更新数据。 我已经根据作业日志文件中的错误进行了查看,但不明白它说的是什么, 错误信息:

Unrecognized argument: variant='3.5\', 
   library=ccodbc, 
   version=1.0, 
   variantlist=\'V1;3.5::ccodbc\', 
   versionlist=\'1.0\', 
   name=ODBCConnector
}'

 SAX parser exception thrown: The input ended before all started tags were ended. Last tag started was 'before' (CC_PropertySet::fatalError, file CC_PropertySet.cpp, line 2,266)

找到解决方案了!

是的,我们可以在 DataStage ODBC 阶段使用 SQL 服务器的#Temp 表,查询绝对完美,但问题是 DataStage 无法执行 SQL 查询。它认为它是 DataStage 参数(因为 DataStage 中的参数以#ParameterName# 为界)所以 DataStage 编译器认为它是一个不完整的参数并抛出上述错误。

解决方法:使用[#Temp_Table]解决问题。