Local data items are data items (also known as variables) that are declared in the procedure division body.
01 names pic x(10) typedef.
procedure division.
declare i1 as binary-long
declare name-list as names occurs 3
*> Optionally, the variables can be initialised inline
declare c2 as binary-long = 5
display c2
perform varying k as binary-long from 4 by 1 until K > 6
display k
end-perform