Compiling code
When you have saved your routine, you must compile it.
About this task
To compile a routine, click Compile... in the Server Routine dialog box. The status of the compilation is displayed in the lower window of the Server Routine dialog box. If the compilation is successful, the routine is marked as "built" in the Repository and is available for use. If the routine is a Transform Function, it is displayed in the list of available functions when you edit a transform. If the routine is a Before/After Subroutine, it is displayed in the drop-down list box of available subroutines when you edit an Aggregator, Transformer, or plug-in stage, or define job properties.
To troubleshoot any errors, double-click the error in the compilation output window. IBM® InfoSphere® DataStage® attempts to find the corresponding line of code that caused the error and highlights it in the code window. You must edit the code to remove any incorrect statements or to correct any syntax errors.
If NLS is enabled, watch for multiple question marks in the Compilation Output window. This generally indicates that a character set mapping error has occurred.
When you have modified your code, click Save then Compile... . If necessary, continue to troubleshoot any errors, until the routine compiles successfully.
Once the routine is compiled, you can use it in other areas of InfoSphere DataStage or test it.