what is this endif?

if you want all screen output in there, obviously you put this line before any output.

if you want the username in the filename, why don't you put it there?
look in the manual for @userid
_________________________
!

download KiXnet