Refer to 7.11.3 CASE Examples for use of the ENDCASE Command