We are converting some stored procedures from IBM DB2 to PostgreSQL. there are some compound statements being used in IBM DB2 but I couldn\'t find an alternative to this in