Import makes accessible functions from other .ctl
files. It is similar to import
statement in Java or include
statement in C/C++. Files to be included must be defined at the beginning before any other declaration(s) and/or statement(s).
You must decide whether you want to use single or double quotes. Single quotes do not escape so called escape sequences. For more details see below. For these fileURL
, you must type the URL of some existing source code file.
Example 51. Example of an import of a CTL file
Example 52. Example of importing a CTL file with a graph parameter
It is also possible to import metadata from an external .fmt
file, similarly to importing external .ctl
files. Then you can use these metadata definitions in CTL when creating record structures. This enables you to use metadata that are unavailable in the current graph. Note that imported metadata can overlay metadata with the same name that already exist in the current graph.
or
The scope of these new metadata definitions is limited just to the current CTL script, so other components don’t see them.
Example 53. CTL Metadata Import