Home > FAQ > Data Manipulation > Editing Arrays

Editing Arrays

ProAdmin expects certain salary and service data to be in organized into specific formats or structures. For example:

When your original data is not in the appropriate format, you can reformat it outside of ProAdmin (e.g., your DBA creates a view with the data in the appropriate format), or edit it from within ProAdmin. In ProAdmin, you may edit data in a data default or from within an Hours or Salary Transformation expression. Because ProAdmin is a parameterized system, the earlier you edit the data, the less the parameters will have adjusted/modified the data. Data defaults are one of the first things that are performed (before almost any parameters have been applied) and transformation expressions are performed after most of the Salary/Service Definition’s parameters are applied. For example, if you need to edit your salary data and you do it in the Salary Transformation expression, you might have to do something extra in your expression to project the edited data because the salary projection was performed before the Salary Transformation is applied. Thus, editing the data in the Data Defaults is preferred: do it earlier and let ProAdmin do most of the work for you!

When you use Data Defaults to edit data:

Below are several example expressions for editing data from within the Data Defaults. Most of them are organized as follows:

 

B_DT:= #START Salary & ; start dates
E_DT:= #STOP  Salary & ; stop dates
V:=    #VALUE Salary & ; values (i.e., the reported salaries)

 

 

11 #ARRAY(B_DT,E_DT,V) ; create a start/stop array (start,stop,values)
; NOTE: #ARRAY drops any row with a ZERO start or stop date

 


Below are examples of editing arrays:

Drop salaries earned (reported) before 1/1/2000
Only salaries in the latest reported calendar year
Only salaries in the next to latest reported plan year
Turn a start/stop array into an effective date array
Turn an effective date array into a start/stop array (using the eff date to create stop date)
Turn an effective date array into a start/stop array (using eff date to create start date)
If a participant terminates and is then rehired within one year, ignore that pair of events
Drop any salaries reported before date of hire
Annualize reported salaries
Allocate reported values based on anniversary years