I am using mysql 5.7 and I have some code which works. But when I try to create procedure with the code, it reports error  . I try to update the content of an old procedure with my current code and it works. Does someone know why this happens?
Here is how I try to create a procedure.
create procedure dispatch_remaintimecal_12division (in lgtid VARCHAR(20)) begin my code; end