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