Develop a DataStage Job to achieve below requirement -
Input:
Single_Column
Atul Kr Singh
Geeta Vishwas
Anoop Despande
Rohit S Pande
Ankit Singh
Garima Bhatia Arya
Output:
Fname Mname Lname
Atul Kr Singh
Geeta Vishwas
Anoop Despande
Rohit S Pande
Ankit Singh
Garima Bhatia Arya
For more Scenario - CLICK HERE
Use field function in transformer to get the result .
ReplyDeleteDerivations in transformer :
Lname ::If Count(InputCol,' ')=1 Then Field (InputCol,' ',2)
Else Field (InputCol,' ',3)
Mname:If Count(InputCol,' ')=1 Then ' ' Else Field (InputCol,' ',2)
Fname : Field(InputCol,' ',1)
:)
Delete