Using symbols
Symbols are used to dynamically assign values to corresponding items in the OPS file. Use
the –symbols
switch, as shown below:
run-na-batch -dir D:\Shares\ExpressBatch\Invoice\data -domain e1Domain
-symbols "datafile=ST053_20231207_0000002380-0002.xml
data_dir=D:\Shares\cycles\cycle0002\input
output_dir=D:\Shares\cycles\cycle0002\output"
In this example, three symbols are used to dynamically resolve the paths for:
- datafile the input data file.
- data_dir - the directory where the data file is located.
- output_dir - the output directory where the output file will be written to.
For formatting reasons in the example above, symbols are presented on a separate lines. However, the run-na-batch command is entered as a single line with a space between each symbol. When referenced in the OPS file the symbol names must be enclosed in percent (%) characters as shown in the example below:
<symbols>
datafile=default.xml
base_dir=D:\Shares\ExpressBatch
data_dir=%base_dir%\Invoice\data
output_dir=%base_dir%\PDF_Output
logs_dir=%output_dir%\logs
<input>
DataInput=%data_dir%\%datafile%
MessagesFile=%base_dir%\messages\*.him
<Output>
PDF-Merged=%output_dir%\%datafile%.pdf
<Journal>
Journal1=%output_dir%\%datafile.jr1
Journal2=%output_dir%\%datafile.jr2
<Advanced>
LogFile=%logs_dir%\%datafile%_pdf.log
<DIJ>
PDF-Merged=%output_dir%\%datafile%.dij
;<trace>
;Outputfile=%logs_dir%\%datafile%_trace.log
;TraceLevel=verbose
;outputcodepage=utf8
;memlimit=0
;supporttrace=on
Note: in the previous example, the file assignment made in the Output section
- PDF-Merged must be the same name as the output device name defined in Designer
as the selected Supported Output Device:

In EngageOne Server Admin, the device name is also presented in the selected Delivery Option → Delivery Channel specified in the XML processing file: