I tend to use temp-tables frequently when using a external file for input. I always seem to get an extra record that is blank. Here is some sample code that I use to do this.
Code:
DEF TEMP-TABLE l-example
FIELD field1
FIELD field2...
INPUT FROM example.csv.
REPEAT:
CREATE l-example.
IMPORT DELIMITER "," l-example.
END.
FOR EACH l-example:
DISPLAY l-example.
END.