You can create a non-reusable Python transformation to use the transformation in a single mapping. Create a non-reusable Python transformation in the Developer tool.
In a mapping or a mapplet, drag a Python transformation from the mapping palette to the editor.
The transformation appears in the editor.
In the
General
tab, edit the transformation name and the description.
In the
Ports
tab, click the
New
button to add a port to the transformation.
Edit the port to set the name, data type, and precision.
Use port names as variables in the Python code.
In the
Python
tab, specify the resource files and compile the Python code for the transformation.
In the
Run-time Linking
tab, create run-time links between the Python transformation and an upstream or downstream transformation in the mapping if the ports change at run time.
In the
Advanced
tab, edit the advanced properties for the transformation.