Use this command in combination with SELECT, CASE and ENDSELECT to create a select statement. A caseend statement specifies the end of a piece of code you are specifying for a case statement.