The
macros.cfg
configuration file defines macro values for substitution into batch
jobs, and overrides predefined values. This file is located in
install-path/etc
.
Each line in the file represents a macro value in the form
key
= value
, where the key is the macro name and the value
is its value. The following example of a macro defines a Windows path:
INPUT_FILE_PATH = C:\files\inputfile.txt
On a UNIX system:
INPUT_FILE_PATH = /home/dfuser/files/inputfile.txt
The example macro is
useful when you are porting jobs from one machine to another, because
the paths to an input file in different operating environments often
differ. By using a macro to define the input filename, you do not
need to change the path to the file after you port the job to UNIX.
You add the macro to install-path/etc/macros.cfg
in
both the Windows and UNIX, and set the path appropriately in each.
The etc directory contains
the macros.cfg file and a macros subdirectory. The macros subdirectory
can contain multiple .cfg files. If one or more of the .cfg files
exist in that subdirectory, then they will be read in alphabetical
order before the macros.cfg file is read. The last value read becomes
the value that is applied.
If your jobs use system
and user-created macros, you must create a combined macro file to
be able to use the macros in DataFlux Data Management Server. For
more information about macros, see the online Help for DataFlux Data
Management Studio.