Navigation: Deposit Screens > Definitions Screen Group > Service Charges Screen > EZ4U Programming > EZ4U Commands >
This Command is one of several commands available to use in EZ4U Programming. The syntax used to enter this command is specified below, followed by a more detailed explanation of the command itself and a few examples.
Syntax: {command} MONSDIFF {expression} {logical operator} {value}
The MONSDIFF command uses the difference in months between two dates in an IF, ORIF or ELSEIF command. It follows the command used, and is then followed by an expression that includes Variables for the dates.
There are a limited number of variables that can be used in the Expression following the MONSDIFF command:
•TODAY - the current date (run date)
•OPENDT - Date account opened
•QTRBGN - Beginning of quarter date
•CYCBGN - Beginning of cycle date
•BIRTH - Birth date of account owner*
•DTLTRN - Date of last transaction
•@MMDDCCYY - Specific hard-coded date (for example, @01312018 for January 31, 2018)
If your institution wants to add a date to the list of dates available for use in MONSDIFF commands, submit a work order to GOLDPoint Systems.
Examples
IF MONSDIFF TODAY - OPENDT >= 3
IF LOWBAL <= 500.00
CHARGE 5.00
In this example, if the difference between the current date and the date the customer account opened is greater than or equal to 3 months, and the low balance on the account is less than or equal to $500.00, a $5.00 service charge is processed on the account.
IF MONSDIFF TODAY - QTRBGN >= 1
CHARGE 5.00
In this example, if the difference between the current date and the date the quarter began is greater than or equal to 1 month, a $5.00 service charge is processed on the customer account. If the difference between the current date and the date the quarter began is less than 1 month, no service charge will be processed on the account.
*The date used for the BIRTH variable is the account owner's birthday. If the system uses a zero birth date for the customer, a command using this variable will fail unless you enter more specific instructions in the Service Charge Instructions field.