When you have compiled and arranged for the loading of your functions, you need to provide for their execution. All functions are called as follows:
Directive fn=function [name1=value1] ... [nameN=valueN]
directive identifies the class of function that is being called. Functions should not be called from the wrong directive.
fn=function identifies the function to be called using the function’s unique character-string name.
These two parameters are mandatory. In addition, there may be an arbitrary number of function-specific parameters, each of which is a name-value pair.
You will need to specify your function in the directive for which it was written. For example, the following line uses a plug-in function called word count that can be used in the Data stage. This function counts the words in a resource and assigns the count to a destination specified by a parameter called dst.
Data fn=wordcount dst=word-count