Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
if( input_row.COLUMN_NAME != null ) {
//input row is NOT NULL, cache this row value in globalMap and assign to output row
globalMap.put("COLUMN_NAME", input_row.COLUMN_NAME);
output_row.COLUMN_NAME = input_row.COLUMN_NAME;
}
else {
//input column IS NULL. retrieve previous row value from globalMap
//if this is the first row, the globalMap will not be populated, so check if the key exists and if not, assign default value
if( (String)globalMap.get("COLUMN_NAME") != null ) {
output_row.COLUMN_NAME = (String)globalMap.get("COLUMN_NAME");
}
else {
output_row.COLUMN_NAME = "DEFAULT VALUE";
}
}
if(input_row.accountno != null)
{
//globalMap.put("col1", input_row.accountno);
globalMap.put("col1", input_row.accountno);
output_row.accountno = input_row.accountno;
}
else
{
if((String)globalMap.get("col1") != null)
output_row.accountno = (String)globalMap.get("col1");
else
output_row.accountno = "NO VALUE";
}
output_row.acctname = input_row.acctname;
output_row.acctdefn = input_row.acctdefn;
if(input_row.accountno != null) {
if(input_row.accountno != null || !"".equals(input_row.accountno) ) {