2017-11-10 4 views
0

load_dateパラメータのデフォルト値としてSYSTEM DATEを設定する必要があります(実行時に提供されていない場合)。私は渡された値をチェックし、それに応じてNULLチェックに基づいて割り当てます。これを実現するための組み込み機能はありますか?nullの場合、パラメータのデフォルト値を設定するにはどうすればよいですか?

私はif_nullステップを使用して試してみましたが、それは問題であるようです。

これは、私はこれは私の変換は次のようになります

2017/11/10 14:19:13 - Spoon - Transformation opened. 
2017/11/10 14:19:13 - Spoon - Launching transformation [123]... 
2017/11/10 14:19:13 - Spoon - Started the transformation execution. 
2017/11/10 14:19:13 - 123 - Dispatching started for transformation [123] 
2017/11/10 14:19:19 - get_variables.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 
2017/11/10 14:19:19 - Write to log.0 - 
2017/11/10 14:19:19 - Write to log.0 - ------------> Linenr 1------------------------------ 
2017/11/10 14:19:19 - Write to log.0 - load_date = null 
2017/11/10 14:19:19 - Write to log.0 - 
2017/11/10 14:19:19 - Write to log.0 - ==================== 
2017/11/10 14:19:19 - get_system_info.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 
2017/11/10 14:19:19 - if_null.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 
2017/11/10 14:19:19 - Write to log.0 - Finished processing (I=0, O=0, R=1, W=1, U=0, E=0) 
2017/11/10 14:19:22 - Spoon - The transformation has finished!! 

私のログに取得されるものです。各ステップの画像に埋め込まれた詳細。事実の問題として

123.ktr

答えて

1

If Nullは、replace by valueにのみ値をフィールドを受け付けません。

他の解決方法もありますが、Modify JavaScript Valueを使用することができます。ジョブによって変換にパラメータがどのように与えられるかに応じて、条件をif(load_date!='null')またはif(!load_date.isEmpty())に置き換える必要があります。

enter image description here

関連する問題