put edit('Update Mode','')(skip,a);
do while(true);
/* read next request */
put skip;
call input_key(rec);
if locate_key(rec) then
do;
do i = 2 to att_cnt;
change_field:
proc;
do while(true);
call hdr_out(i);
call att_out(i,rec);
if att_in(i,rec) then
return;
call att_err();
end;
end change_field;
call change_field();
end;
put edit('Ok to Change (y/n)?')
(column(4),a);
get list(answer);
if answer = 'y' then
call alter_rec(rec);
end;
end;