Created by Miki Yanagi, last modified on Jun 30, 2023
The census tables in HRPRD are updated four times a year (3/31, 6/30, 10/31 and 12/31). There are 4 SQRs to update two tables. The tables are PS_UM_F_EMP_CENSUS and PS_UM_F_DIS_CENSVW (which despite the name is really a table not a view).
Step-by-step guide
Open HRPRD in PL/SQL Developer and run this SQL. Make sure the current census date is NOT on these tables.
select census_dt, count(emplid) from sysadm.PS_UM_F_EMP_CENSUS
group by census_dt
order by census_dt desc;
select census_dt, count(emplid) from sysadm.PS_UM_F_DIS_CENSVW
group by census_dt
order by census_dt desc;
Run this SQL to check if the archive ran the night before.
SELECT MAX(ARCHIVE_DT) FROM SYSADM.PS_UM_EMPLOYE_ARC;
Log in HRPRD on MaineStreet and go to Navigator, University of Maine System> General Options > Processes > Census Tables
The run control page requires a run control ID. Here is an example using “BATCH”, but anything will do. Change the "Census" date to the appropriate date (3/31, 6/30, 10/31 and 12/31).
Click "Run" and you get this.
If you run on the census day, check the boxes for UMANDISC and UMEMPCEN then click "OK".
If you run after the census day, check the 2 back-fill options; UMADNIBF and UMEMPCBF. If the archive has not run the night before (check by running this SQL : SELECT MAX(ARCHIVE_DT) FROM SYSADM.PS_UM_EMPLOYE_ARC ) , you can use the UMANDISC and UMEMPCEN, otherwise run UMANDIBF and UMEMPCBF which use the archived extracts .
Click "OK" to run the processes.
Go to the Process Monitor and wait till the "Run Status" change to "Success". (It will usually take less than 10 minutes.)
Run this SQL (same as #1) again to check the data. You should see the data for the most recent census date on these two tables.
select census_dt, count(emplid) from sysadm.PS_UM_F_EMP_CENSUS
group by census_dt
order by census_dt desc;
select census_dt, count(emplid) from sysadm.PS_UM_F_DIS_CENSVW
group by census_dt
order by census_dt desc;