Here is the code I'm using if you want to try and duplicate it...
CREATE CURSOR detail1 (;
RPT100 C(50),;
RPT101 C(50),;
RPT102 C(50),;
RPT103 C(50),;
RPT104 C(50),;
RPT105 C(50),;
RPT106 C(50),;
RPT107 C(50),;
RPT108 C(17),;
RPT109 C(10),;
RPT110...