140: BEGIN
141: IF ( (last_hdr_allocated IS NULL)
142: OR
143: (next_hdr_to_use = (NVL(last_hdr_allocated, 0) + id_increment)) ) THEN 144: SELECT cz_config_hdrs_s.NEXTVAL 145: INTO last_hdr_allocated
146: FROM dual;
147: next_hdr_to_use := last_hdr_allocated;
148: END IF;