The filename area is a data area which contains the name of the file in use, as recognized by the operating system.
It can contain drive and/or path information as well as the actual name of the file. The name must be terminated by a space.
This filename area must be filled before the first operation on the file.
The following example shows how the FCD is set up to point to the filename area:
01 FILENAME-AREA PIC X(65) VALUE "master.dat". ... MOVE 65 TO FCD-NAME-LENGTH SET FCD-FILENAME-ADDRESS TO ADDRESS OF FILENAME-AREA ...