Abinitio Interview Question # 17 | Dynamic Parameter in Conduct It
Watch my YouTube video for explanation :
Please look into the class notes here for your references:
I have 100 records in input and I want o/p like in
first run first 25 records will go to out port and
2nd run 26 to 50 recs will go to output and 3rd run 51 to 75 and
4th 76 to 100 recs shall go to o/p.
How to achieve this?
a. plan approach
plan
plan parameters
IN_DATA =0 (make it dynamic parameter)
INCREMENT_VALUE=25
Looping plan
loop_type=while loop
loop_condition=$IN_DATA<100
Use plan dynamic parameter so that the parameter value can be referenced
as well as altered.
Amend it to make
graph task->
Input ----> FBE-----> Output[(file:$AI_SERIAL/${LOOP_VALUE_COUNTER}.dat]
use package calculate let int value= next_in_sequence();
out.id::if(value>$IN_DATA and value<=$IN_DATA+INCREMENT_VALUE}) 1 else 0;
program task->
plan admin-set IN_DATA=$IN_DATA + $INCREMENT_VALUE
Fore more Abinitio, AWS and data engineering videos please subscribe , view , like and share my YouTube channel
Click DataPundit
Comments
Post a Comment