I got the answers to the question.
A Data Transformation Function needs to be created. Below are the steps:
1. Create a PDO of the input data.
2. Create a LDO and drag the PDO into it.
3. Create a Data Transformation using the wizard and use the schema to create the output.
4. Select the output data type as Relational Data.
5. Once complete pull the Data Transformation into the LDO.
6. Add an Expression to filter out the column names .
7. Connect the output with the Data Object and run data viewer.