Solved

How to Copy a LIB & IFS Dir from One iSeries to Another second iSeries Server?

Posted on 2013-06-24
4
1,867 Views
Last Modified: 2013-06-25
I need to copy some LIBs from one iSeries to another iSeries on the same network.

I also need to copy a directory on IFS from one iseries to another.

I am not an AS400 expert but I know how to access both green screen and IFS to get access to the LIBs I need to copy.

But I don't know what the commands/steps are to copy the LIBs and IFS to another server.

Can you help provide those steps/commands?

As an example:

On iSeries A (the server I need to copy the data FROM):

Here are the LIB Names:
>COTP900
>TPDTA
>TPCTL

On IFS this is the name of the dir I need to copy on iSeries A:
>TP900

They all need to be copied to iSeries "B".

Also, these iSeries servers are running the JD Edwards EnterpriseOne Software. The LIBs & Dirs I"m coping are JD Edwards LIBS/Dirs. Just in case anyone out there is familiar with JD Edwards on iSeries.

Thanks!!
0
Comment
Question by:matrix0511
4 Comments
 
LVL 18

Expert Comment

by:daveslash
ID: 39272410
Of course, it's completely up to you, but you'll probably get more relevant answers in the AS/400 topic area:

http://www.experts-exchange.com/Programming/System/AS_-_400/

HTH,
DaveSlash
0
 
LVL 11

Accepted Solution

by:
apathy42 earned 500 total points
ID: 39272425
To do the library, your best bet is:

1) Create a save file on IseriesA to hold the libraries: CRTSAVF QGPL/LIBCOPY

2) Save the libraries: SAVLIB LIB(COTP900 TPDTA TPCTL) DEV(*SAVF) SAVF(QGPL/LIBCOPY) SAVACT(*LIB)

3) Create a save file on IseriesB to copy the file into: CRTSAVF QGPL/LIBCOPY

4) Use FTP to transfer the file (this assumes you're going from IseriesA):
FTP IseriesB
(enter username and password)
LCD QGPL
CD QGPL
BINARY
PUT LIBCOPY.SAVF
QUIT

5) Verify that the save file copied correctly - on IseriesB, DSPSAVF QGPL/LIBCOPY

6) Restore the libraries on IseriesB: RSTLIB SAVLIB(COTP900 TPDTA TPCTL) DEV(*SAVF) SAVF(QGPL/LIBCOPY) ALWOBJDIF(*ALL)

The process for the directory is similar - here's an IBM doc on it:

http://www-912.ibm.com/s_dir/SLKBase.nsf/1ac66549a21402188625680b0002037e/9a5ac19808992ac4862565df005ccc21?OpenDocument

You can also just use iSeries navigator to copy the files too - just go to iSeriesA - File Systems->Integrated File System->Root->TP900, right-click and Copy.  Then, go to iSeriesB ->File Systems->Integrated File System->Root, right-click and Paste.
0
 

Author Closing Comment

by:matrix0511
ID: 39273244
Excellent. Thanks!
0
 
LVL 27

Expert Comment

by:tliotta
ID: 39274662
It might depend on how the two systems are configured. For example, to save libraries COTP900, TPDTA and TPCTL from ISERIESA and restore them to ISERIESB, you might just run this command on ISERIESA:
SAVRSTLIB LIB(COTP900 TPDTA TPCTL) RMTLOCNAME(ISERIESB)

Open in new window

For the directory:
SAVRST RMTLOCNAME(ISERIESB) OBJ(('/TP900'))

Open in new window

Other parameters might be needed depending on circumstances. But if features such as ObjectConnect are enabled, those would be the only two commands you'd need to run.

Tom
0

Featured Post

Space-Age Communications Transitions to DevOps

ViaSat, a global provider of satellite and wireless communications, securely connects businesses, governments, and organizations to the Internet. Learn how ViaSat’s Network Solutions Engineer, drove the transition from a traditional network support to a DevOps-centric model.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
I want coulmn name and value as output 18 66
Mainframe Hardening Standards 8 141
crm 2010 on premise 5 87
filter big file based upon on multipe criteria 2 65
Read about achieving the basic levels of HRIS security in the workplace.
Messaging apps are amazing tools with the power to do a lot of good, but the truth is the process of collaborating with coworkers requires relationships established through meaningful communication - the kind of communication that only happens face-…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question