Follow

How do I map a filename?

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
Capture.PNG

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.

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk