An SQL cursor. For example:
EXEC SQL DECLARE A_CURSOR CURSOR FOR SELECT A.DATE FROM SOME_TBL A; { A_CURSOR is an sql cursor }