[TABLE]Sometimes it's the simple things that make the difference.
There are many techniques for transferring data from one machine to another. Some techniques have the advantage of security (tapes, CDs), but they take additional time in delivering the data. When time is critical, FTP offers a fast way to transfer data. Within the process of FTP data transfer, you can use several approaches with various degrees of automation.
The following is an example of automating the transfer of libraries from one iSeries to another by using batch files and your PC as an intermediate host. Generally, a PC is not required to be an intermediary in an FTP transfer between two iSeries, but there are some instances where it is necessary. The most common scenario is when the PC is the only link between two iSeries machines, such as using your local PC to dial in to a PPP line on another iSeries.
In this example, create a directory on the PC called FTPTMP that contains three batch files and also serves as a temporary holding place for a save file. The controlling batch file (GETSEND) calls a batch file (GETFROM) to save and retrieve all of the objects in a transfer library cal
To continue reading for free, register below or login
To read more you must become a member of Search400.com
');
// -->

led XFER on the "from" iSeries and puts the save file into your PC directory. The second batch file (SENDTO) sends the save file to the receiving iSeries and restores all of the objects in the save file into a transfer library called XFER on the receiving machine.
The downside to this approach is that USERNAME and PASSWORD need to be replaced with the user name and password of the systems you are connecting. This could be a potential security exposure, which will need to be properly assessed and managed. Once managed, this can be a simple, handy and time-saving technique. In this case, an old-fashioned DOS batch file can still be an effective tool.
---------------------------
About the author: Tim is vice president of Technical Services at Interlink Technologies in Maumee, Ohio, where he serves as chief architect for their warehouse management system. He has worked in the banking, insurance, healthcare and distribution industries in various positions, including programmer/analyst, systems analyst and DP manager. Tim has worked on IBM midrange platforms since 1983.
==================================
MORE INFORMATION
==================================