Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2106

Re: JDBC LOOKUP IN PI

$
0
0

Create UDF with two input parameters , Execution Type - All values of queue

 

 

//Parameter 1 - Row
//Parameter 2 - JDBC Lookup output
//Argument name 1- row type String
//Argument name 2 - input type String
for (int i =0;i<row.length;i++)
{
result.addValue(input[i]);
result.addContextChange();
}

Map like below logic:

 

                                                         Map Row -->UDF Param 1

                                                                                                             -----> Map output of UDF to Target Field

Map JDBCLookup Output1 --> RemoveContext-->UDF Param 2  

 

 

 

                                                       Map Row -->UDF Param 1

                                                                                                             -----> Map output of UDF to Target Field

Map JDBCLookup Output2 --> RemoveContext-->UDF Param 2

 

 

 

                                                         Map Row -->UDF Param 1

                                                                                                             -----> Map output of UDF to Target Field

Map JDBCLookup Output3 --> RemoveContext-->UDF Param 2

 

 

Let me know if it works!

 

Thank you,

Justin

 

Note: The above logic was written under an assumption that no.of rows will always be equal to the no.of outputs produced by JDBC lookup..


Viewing all articles
Browse latest Browse all 2106

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>