A DB2 procedure may contain a compound statement, gets a name and it is stored at the server - hence the name "stored procedure". You can execute a stored procedure using the CALL statement.
A compound statement is just a sequence of SQL statements. It may be contained in a stored procedure or UDF.