It doesn't have to be the last field in the record.  Also it would be worth making clear that if it is reading from a superfile, the filename is the name of the current logical file within the superfile.