Copying Files Between 2 Partitions on the same iSeries

I need a way to automate copying 14 physical files from one partition to the 2nd partition on the same iSeries. We have a 520 with 2 partitions and a HMC. What would be the best way and what would have to be set up to accomplish this?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Easiest way… good old DDM files. Create a CLP that will copy the files to their respective DDM file; which will copy the data to the second system.

Depends on what you mean by “automate”. A CLP scheduled to run from the job scheduler or adding a trigger to the file to refresh it when a change is made?

Discuss This Question: 3  Replies

There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Hmonat
    Have you tried the SAVRSTxxx commands?? You can use the SAVRSTLIB from a source partition to send a library to the target partition. SAVRSTOBJ to send any objects to the target partitions, etc... there is 6 different SAVRSTxxx commands. You can then automate them thru a CL pgrm
    20 pointsBadges:
  • SBCHenry
    A third option ? If your logical partitions are part of an TCP/IP network you can also use FTP to send files from one LP to the other. The CLP program executing the FTP can be run in any of the 2 LPs (Put or Get). CLP would look as: PGM OVRDBF FILE(INPUT) TOFILE(Srcfile) MBR(Commands) OVRDBF FILE(OUTPUT) TOFILE(Srcfile) MBR(logfile) FTP RMTSYS('Name of the other LP') ENDPGM "Commands" is a source member that contains the FTP commands to do the job. IT would look like this: UserId password PUT origlib/origfile destinylib/destinyfile QUIT "logfile" is populated by the FTP commands with the results of the commands. Hope this helps. Henry
    30 pointsBadges:
  • JDWWms
    You first have to remember that to each partition the other opne looks liek a different physical box and all of the commands that apply between two physical systems would still apply. The only real difference is you can use a virtual lan between the two and move the data at bus speeds. FTP would work fine, With DDM you wouldn't even need to copy the data it could just be live on both boxes. If you really only want a copy on the 2nd partition DDM would still work just set the link to a duplicate of the original file and copy to that.
    0 pointsBadges:

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.


Share this item with your network: