As part of an ongoing problem with some code we have developed a tool which allows save files to be replicated between systems. The tool comes with the relevant menus,commands and programs etc to allow the process to work. They have been created at V5R4 although if required we can produce them at V5R3 should the need be significant enough. You can find the tool on our download page on this blog.
Installation requires the objects in the zipped save file to be restored, the saved library is REPSAVF. The owner of the objects is CHRISH so when you install you need to allow object differences and change the owner from the default owner to a suitable new owner.
To start the programs on the target simply add the library to your library list, go SVFRMAIN and select the option to start the target receivers. From the source system take option 3 and fill in the relevant information.
Due to a limitation of the OS we cannot determine the number of records in save files created using the SAV commands or related API’s (IFS etc). We could create a workaround but feel the tool provides sufficient capabilities with out it. Should you need to replicate a save file created using the SAV commands or API’s you need to find out the number of records in the save file before transferring it. This can be achieved by displaying the save file header using the DSPSAVF command. Any attempt to replicate the save file results in the target system job waiting on a recv() and a message on the source stating the save file details could not be retrieved. You will need to stop and restart the target jobs to recover from this error, we will provide a fix for this in the near future.
The code is shipped without any warranty or support, we will accept requests for fixes and will attempt to provide them on a timely basis without any commitment to do so. Use the programs at your own risk ensuring you take any steps necessary to ensure you protect your systems and data.
We would appreciate any feedback you have.
Chris…