How to access files on a different server


Question:

Can we run a program in server 1 and update the data to database sitting on server 2?

Answer:

Yes!
If you are accessing an RDBM you can use the iscobol.jdbc.url property to point to the data server.
For instance, your url to connect to a SQL Server database on server 2 might look like this:

   iscobol.jdbc.url=
   jdbc:sqlserver://server2-ip-address:1433;user=sa;password=sa;encrypt=false;DatabaseName=master
If you are using indexed, sequential or relative files you can use the isCOBOL File Server to access your data files on server 2 from your programs on server 1.
Here are the steps: There are many additional options and settings for running the file server and using remote isf protocol.
Please check the documentation for the isCOBOL File Server in the isCOBOL Application Server documentation.



Article ID: 333
Created: November 7, 2022
Last Updated: November 7, 2022
Author: Support KB Author

Online URL: https://support.veryant.com/support/phpkb/article.php?id=333