Function sys_get_path_data_dir

This function returns the path to the data folder for the currently running job. The function returns the path in proper form, that is, ending with a slash.

Parameters

None.

Returns

The full directory path to the current data directory.

Examples

Given you are using /home/dbetl as the root folder for your JCL installation, this function will return /home/dbetl/data/. When you configure JCL you can name the data dir something other than “data” if you choose to do so.

Example
my $path = sys_get_path_data_dir();
log_info( "Path to bin is $path" );

Job Configuration File

There no job conf entries used by this function.

Additional Notes

A typical JCL installation will have a data folder, inside of the data folder will be other folders for storing data files. A typical installation will have a previous folder, a load folder, an extract folder, and a publish folder. You have the ability to name these folders any way you want when you configure the JCL package. This function returns the high-level data directory path.