I am looking to do LEAD() and LAG() functions to perform in DataStage.
Input C1 C2 1 100 2 200 3 300 4 400
Output - 1 C1 C2 C3 1 100 200 2 200 300 3 300 400 4 400 NULL
Output - 2 C1 C2 C3 1 100 NULL 2 200 100 3 300 200 4 400 300
Please help me getting this as I did tried with multiple ways using stage variables and loop variables but still unable to get it.
#DataStage #DataStage #LEAD #LAG
I did tried with multiple ways using stage variables and loop variables but still unable to get it.