I am so close to having a need to update two small integer fields in a file with the code below......but both overlays place the 'result' of the addition into columns 1 and 2 of
the records instead of the columns expected (56,57 and 33,34) ....Does anyone see why ?
//SYSIN DD *
OPTION COPY
INREC IFTHEN=(WHEN=(56,2,BI,EQ,14),
OVERLAY=(56,2,BI,ADD,+5,TO=BI,LENGTH=2)),
IFTHEN=(WHEN=(33,2,BI,EQ,15),
OVERLAY=(33,2,BI,ADD,+5,TO=BI,LENGTH=2))
/*
Columns 1 and 2 are replaced in the output record ???