#
# PxPlus Journal apply configuration file
#
# This file contains the configuration parameters for the journal application program
# *plus/jrnl/apply.
#
# Each line can be a comment or variable definition.  A variable definition contains the
# name of the variable, an equal sign (=) and the value.  If the value is numeric then the 
# variable name will be considered a numeric variable.  If not numeric then a string variable
# will be created.  (To force string surround the value with quotes ")
#
# Blank lines or lines starting with #, ! or ; are considered comment lines
# 
# The default values for most values have been placed in this file as comments starting with #!!
#
# ------------------------------------------------------------------
# General information
#
# The DIR value can be defined to override the directory in which the journal files
# are found.  This directory will also be used to hold the log and other
# related files.  If not specified the current directory will be used.

#!! DIR="."

# The LOGFILE value defines the pathname for the logfile that will receive any error messages.
# If not set the system will use "apply.log" as the name of the file in the journal
# directory.  Should an error occur in the config file *prior* the definition of the logfile
# the default log file of "apply.log" will be used.

#!!LOGFILE=apply.log

# ------------------------------------------------------------------
# Processing information
#
# The IDLE_WAIT defines how long (secs) the system will sleep for between checking the
# journal files to see is more data is ready to be applied.

IDLE_WAIT=5

# The OUTPUT_DIR value defines the target output directory.  If not specified the current
# working directory will be used.

#!!OUTPUT_DIR=

# The PREFIX value can be used to define a standard PxPlus prefix value to be applied
# to the output.

#!!PREFIX=

# The PREFIX_FILE value can be used to define a PxPlus prefix file to be used when
# looking up the actual pathnames for the files.

#!!PREFIX_FILE=

# The SIMPLE_NAME value if set to 1 (or YES) indicate that the pathnames should be stripped
# down to just a filename (remove directory names)

#!!SIMPLE_NAME=NO

# The USERJRNL directive defines the name of the program to call to process any user
# defined Journal messages.  This program will be passed the contents of the string from a 
# SYSTEM_JRNL WRITE <string> directive

#!!USERJRNL=program_name

# The REDIRECT option (there may be multiple) allows you to define a mask and
# replacement target file name.  The mask and replacement name must be separated
# by a comma.  If the replacement name is - (dash) then the output is discarded.
# Also in the filename %0, %1, %2,... will be changed with the full mask or segments
#
# Examples:  REDIRECT=AR(.*),AcctRec%1
#            REDIRECT=GL9,-

#!!REDIRECT=mask,file

# The PROGRAM option provides a file name mask which if matched will cause the
# system to send the data to a program.  This program will be passed the following values:
# - Journal record type - 1 Character (string)
# - Journal data - Record contents (string)
# - Journal key info - External keysize for keyed file, Index for Indexed (numeric)
# - File name - Adjusted file name (string)
# - File pathname - Original file pathname (string)


#!!PROGRAM=mask,program

# ------------------------------------------------------------------
# Notification information
#

# Whenever a serious error occurs the system can automatically send an email to the
# email address specified in MAILTO.  It uses the smtp server defined in SMTP.
#
# The from address can be set using the MAILFROM parameter
#
# If MAILTO and SMTP and not set, no mail is generated.

# MAILTO=person.to.contact@example.com
# SMTP=mail.example.com
# MAILFROM=person.to.sendfrom@example.com

    