Using symbols

In order to dynamically assign values to OPS configuration files, symbols support is provided in Express Batch processing mode.

Symbols can be used on the command line used to run NA batch using the –symbols switch, as shown below:

run-na-batch.bat -domain sampledomain -dir C:\nabatchinput -symbols "outputfolder=C:\output journalfilename=journal.dij"

Symbols can also be used in the OPS file, as shown below:

<Symbols>
outputfolder=C:\output
journalfilename=journal.dij 

To reference symbols in the OPS file should be wrapped inside the % sign, as shown below:

<Journal>
Document=%outputfolder%\All_Sections_Message_Test.JRN
TLE_Print_Index=%outputfolder%\TLE_Print_Index.JRN

In the example that follows two symbols are used to dynamically resolve the paths for the input data and output using the following symbols:

  • Data uses the value from the command-line,
  • Output uses the same value from Data"
<Symbols>
Data=%1%
Output=%Data%
 
<Input>
DataInput=c:\EngageOne\GenTest\input\%Data%
ActiveContentLocation=c:\EngageOne\gentest\ActiveContent
MessagesFile=c:\EngageOne\GenTest\HIM\*.him
 
<Journal>
Journal2=c:\EngageOne\gentest\output\%Output%.jrn2
Journal3=c:\EngageOne\gentest\output\%Output%.jrn3
 
<Output>
Output1=c:\EngageOne\gentest\output\%Output%.pdf
;Output2=c:\gentest\output\%Output%.ps
 
<Advanced>
LogFile=c:\EngageOne\gentest\output\%Data%log
 
<DIJ>
Output1=c:\EngageOne\gentest\output\%Output%.xml
 
;<trace>
;Outputfile=c:\EngageOne\gentest\output\%Data%_trace.log
;TraceLevel=verbose
;outputcodepage=utf8
;memlimit=0
;supporttrace=on