ibm-infosphere

Assigning an SQL result to a Job Parameter in DataStage

蹲街弑〆低调 提交于 2019-12-13 02:55:50
问题 I just started using Datastage (version 11.5) and I am trying to assign the value of a simple SQL query (select max(date_col) from Table) into a Job Parameter so that I can use it as a part of a file produced from the job. Can anyone point out a simple approach to this, since I am rather lost on how to include SQL queries in parameter values. Thanks in advance. 回答1: There are some options to do this. The one I recommend is: write the result of you query into a sequential file Use a Execute

How to add new line after closing tg in Datastage xml output?

流过昼夜 提交于 2019-12-11 14:45:43
问题 So i've been making a XML output with the output layout/format/styling like this <HAI> <TIME_SK> <INSERT_DATE> 20191021 </INSERT_DATE> <SRC_STM_ID> 1 </SRC_STM_ID> <HAI> <TIME_SK> <INSERT_DATE> 20191021 </INSERT_DATE> <SRC_STM_ID> 1 </SRC_STM_ID> but i wanted to make the output like this <HAI> <TIME_SK> <INSERT_DATE> 20191021</INSERT_DATE> <SRC_STM_ID>1</SRC_STM_ID> Someone have any idea? Thankyou 来源: https://stackoverflow.com/questions/58705214/how-to-add-new-line-after-closing-tg-in