Perform the following steps to generate code for a job, edit the code, and then save
the edited code to the job's metadata or a file:
-
Open the Code tab in the properties window for the job or transformation.
-
Select User
written body or All user written in
the Code generation mode field. Any portion
of the code that is not user-written is dimmed when you click User
written body. You cannot modify this part of the code.
-
Place the cursor in
an editable section of the Code tab. Edit
the generated code in the Code tab.
Note: You can modify existing generated
input and output macros. These macros use the following naming convention: _input_xxxx and _output_xxxx.
The xxxx suffix is a descriptive
keyword for the value of the macro.
-
Click
Save or
Save
As on the toolbar for the tab. The
Save option enables you to save the code in the editor as a
metadata object (instead of saving the code into a file). The
Save As option
opens the
Save File window, where you can
either save a name and description for the metadata object (code in
the editor) or save the contents of the editor as a file.
Note: The
Save and
Save
As options apply your changes to the current session.
To make your changes persist after the current session, you must save
the entire job. To save the entire job, select
FileSave from
the menu bar on the desktop.
-
Click OK to
save the changes and close the properties window.