It is common practice within COBOL applications to have a file assigned in the following way:
SELECT MYFILE ASSIGN TO EXTERNAL MYFILENAME
The actual value of MYFILENAME is set externally.
The easiest way to set the value of MYFILENAME is by using the 'cblconfig' side-file. Follow these steps:
- Project > right-click Resources > New > Other > File > enter "cblconfig" in "File Name" > Finish
- In the 'cblconfig' edit window, enter something like: MYFILENAME=c:\tmp\myfil.v01
- Save the 'cblconfig' file
When the COBOL program runs, MYFILE is mapped to the value of MYFILENAME.
This can also be done via the command line -- see this article.