[Migrated content. Thread originally posted on 01 July 2008]
Have you checked the length of WS-FILENAME?It may be set up as a PIC x(60) field and the name passed to it being greater than 60 characters is being truncated, thus causing a -1 to be returned.



