SC - User Variable#

User Variables are a type of variable whose value is defined by the user. These variables are provided to allow system-wide values that may be referenced by a variety of applications.

The unique properties of user variables are:

  • Date sensitive, allowing rates to change over time while keeping a history of the changes
  • Not updated by any of the UserCalc types
  • Not maintained within the UserCalc form
  • Not created with the UserCalc tool
Statement
Parking Fees are currently $15 (this amount increase twice a year) and stored in Pay Component 256. (OT=PC, Operand1 = 256).

Line CMD OT Operand 1 OPER OT Operand2 OT Operand3 If Goto Else GoTo
00010 LET PC 256 EQ $C PARKING FEES 99999
99999 EXIT 99999

DEFINE USER VARIABLES#

If an amount needs to be used by a pay component or a UserCalc, it should be created as a user variable. This allows the amount to be changed, date effectively, in one place. Any pay component or UserCalc that references this user variable will then automatically use the new rate.

You may create and maintain user variables through the Maintain User Variable (IMVR) form.

User Variable data is stored on the P2K_AM_USER_VARIABLES and P2K_AM_USER_VARIABLE_DETAILS.

User Variable Code
This field uniquely identifies the user variable.
Description
This field describes the purpose of the variable.
Field Type
This field identifies the value to be entered as a boolean, character, date, or number.
Value
This field shows the actual value of the Field Type indicated in the top part of the form.


Notes #

Click to create a new notes page