Assigning an SQL result to a Job Parameter in DataStage
问题 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