in reply to Problem with do statement

the open .. or do { .. } is a single statement, and should be ended with a semicolon.

}; # end do
should work.