0 pts.
 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?

Software/Hardware used:
ASKED: November 9, 2006  2:26 PM
UPDATED: November 11, 2006  1:07 PM

Answer Wiki:
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?
Last Wiki Answer Submitted:  November 10, 2006  9:24 am  by  Kbarnette   0 pts.
All Answer Wiki Contributors:  Kbarnette   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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 pts.

 

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

 15 pts.

 

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 pts.