This program automatically purges(or deletes) data in a database.The purge is done based on how old the data is. Retention of data is based on conditions applied to last updated date or the last modified data field/column in given table. When a row in a table meets the condition then it is selected for deletion. After that other rules are applied before it is finally deleted from the table.
ALL.TAB.FIELD
; for example ALL.TAB.FIELD=updt_timestmp
means all the table has an updt_timestmp and
ALL.TAB.FIELD.VALUE=2018-04-22
ALL.TAB.FIELD.VALUE.FORMAT=yyyy-MM-dd
ALL.TAB.FIELD.COMP.OPR=<=` and all rows with update_timestmp <=2018-04-22 are ready to be deleted.
ALL.TAB.EXCLUDE.BEGIN.WITH=DIM
ALL.TAB.EXCLUDE.ENDS.WITH=_LU
ALL.TAB.EXCLUDE.CONTAINS=
TAB.EXCLUDE.LIST=A,tab12
CUSTOM.TAB.FILTER.FILE.NAME= `path_to_filenamethatcontainscustomerfiltersforatable`
example: tab3,updt_timestmp,2018-04-19,AND 1<>1
in above example for table tba3 use field name updt_timestmp to filter the data and apply the and condition
CUSTOM.TAB.JOIN.FILE.NAME= `path_to_fileContainingcustomjoins`
example: tab5,tab2col1,tab2,tab2col1 **column tab2col1 in tab5 is joined to tab2col2 in tab2**
In the above picture the tables can be broadly classified as level0,1 2..Leveln tables where level 0 being the top level table meaning these are not dependant on any other table and level 1 the next child of level 0 table and so on.Listed below are tables by their levels
```
Level 0 table are: tab1
Level 1 child tables are: tab12, tab2, tab3
Level 2 child table/s are: tab4 Child of (tab3, tab2)
```
1) if a row in tab12 is updated w/ today's date its parent row in tab1 can’t be deleted; 2) tab1's child rows in tab2 and tab3 can't be also deleted 3) if one child row is not deleted able then the common parent can’t be deleted 4) Also, tab4 has 2 parent tables; a row in tab4 that has a parent row in tab2 and can't be deleted; then the other parent ie tab3 row cannot be also deleted; 5) Also, all the rows in the parent tables that is all the way to the top level 0 parent can't be deleted and all the child rows associated w/ each parent row cannot be deleted as well.