K IBXDATA N Z,Z0 S Z=0 F S Z=$O(IBXSAVE("OCCS",Z)) Q:'Z S Z0=$P($$DT^IBCEFG1($P(IBXSAVE("OCCS",Z),U,2),$P(IBXSAVE("OCCS",Z),U,3),"RD8"),"-",2) I Z0'="" S IBXDATA(Z)=Z0
FORMAT CODE DESCRIPTION
Each occurrence span code to date found in the IBXSAVE array previously
extracted is formatted into CCYYMMDD date format and is output.