Good afternoon. I am currently working with RM/COBOL and we are planning to acquire Visual COBOL, the download for evaluation but so far I can not make an application that uses indexed files.
Therefore I request any help that I can provide, I would serve much any tutorial or in your case a basic project in Visual Studio that handles files.
Thank you...
Are you trying to read RM indexed files or just trying to create Visual COBOL standard indexed files?
Are you using native projects or .NET managed code projects?
I will attach a demo project but I want to ensure that it covers what it is that you are trying to do.
What exactly is the problem that you are experiencing?
Thanks.
Good afternoon. I am currently working with RM/COBOL and we are planning to acquire Visual COBOL, the download for evaluation but so far I can not make an application that uses indexed files.
Therefore I request any help that I can provide, I would serve much any tutorial or in your case a basic project in Visual Studio that handles files.
Thank you...
Here is a very simple demo of creating and reading an ISAM file in a native Visual COBOL program.
Let me know if you require something else.
Thanks.
Good afternoon. I am currently working with RM/COBOL and we are planning to acquire Visual COBOL, the download for evaluation but so far I can not make an application that uses indexed files.
Therefore I request any help that I can provide, I would serve much any tutorial or in your case a basic project in Visual Studio that handles files.
Thank you...
Thank you very much for the help, this is precisely what I needed.
Have a good day
Good afternoon. I am currently working with RM/COBOL and we are planning to acquire Visual COBOL, the download for evaluation but so far I can not make an application that uses indexed files.
Therefore I request any help that I can provide, I would serve much any tutorial or in your case a basic project in Visual Studio that handles files.
Thank you...
Your project I have been very helpful, thank you.
Now I would like to know if you have an example using the EXTFH.cfg configuration file already according to what research I need to use it and set the variable IDXFORMAT = 21. I've tried to do and it does not work.
Good afternoon. I am currently working with RM/COBOL and we are planning to acquire Visual COBOL, the download for evaluation but so far I can not make an application that uses indexed files.
Therefore I request any help that I can provide, I would serve much any tutorial or in your case a basic project in Visual Studio that handles files.
Thank you...
Here is a revised version of the demo project which sets IDXFORMAT"21" using a extfh.cfg file.
Note that the file assign has been changed to point to a full path in the DATA subdirectory.
In the program you will see a comment where you could also set IDXFORMAT"21" as a compiler directive instead of using an EXTFH.CFG file.
The current EXTFH.CFG file looks like:
[XFH-DEFAULT]
BASENAME=ON
[testfile.dat]
IDXFORMAT=21
The BASENAME=ON option is necessary so that we can specify the file tag without using a full path to the filename.
We could have also set this to the folder name so that all files in that folder would be IDXFORMAT"21" by using the following:
[FOLDER:C:\\\\ISAMDemoNative\\\\ISAMDemoNative\\\\DATA]
IDXFORMAT=21
Good afternoon. I am currently working with RM/COBOL and we are planning to acquire Visual COBOL, the download for evaluation but so far I can not make an application that uses indexed files.
Therefore I request any help that I can provide, I would serve much any tutorial or in your case a basic project in Visual Studio that handles files.
Thank you...
Perfect! Thank you very much, I could already use the file correctly.
Good afternoon. I am currently working with RM/COBOL and we are planning to acquire Visual COBOL, the download for evaluation but so far I can not make an application that uses indexed files.
Therefore I request any help that I can provide, I would serve much any tutorial or in your case a basic project in Visual Studio that handles files.
Thank you...
Perfect! Thank you very much, I could already use the file correctly.