stream-name The stream from which you want to FETCH the next record. on-error The ON ERROR clause. Specifies host language statement(s) to be performed if an error occurs during the FETCH operation. For more information see the entry on ON ERROR. statement Any valid RDML or host language statement to be executed when your program reaches the end of a record stream. Use a semicolon (;) at the end of each RDML, Pascal, or C statement.