The DBREP is used to replace the current LREC with a new LREC that is supplied , Similar to DBMOD the difference being that the size of the new LREC can be different from the old LREC , The Key fields used for organisation however should be the same
If the key fields are to be changed , One should DELETE the old LREC and ADD the new LREC , so that the new LREC finds its place according to the file organisation
Mandatory Parameters for DBREP
#IF (DBFOUND,YES) THEN
#IF TRABSTA,EQ,X'20' THEN
EXPLOSIVE DC C'ITEM EXPLOSIVE'