ahhh, i've found the error:

it was the
Code:
date_convert char(250);
variable.

If the variable is char <(228) it works and the filename is recognized by the Procedure.

I have no clue why, because 250 doesn't seems to me as such a big value for a character variable...