ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

transfer file between 2 as400

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • transfer file between 2 as400

    i have 2 as 400

    ip1: 1.1.1.1
    ip2: 1.1.1.2

    how can trasfer 1 library/file etcc from ip1 to ip2?


    tnx

  • #2
    Re: transfer file between 2 as400

    Simpliest, and most brute-force....
    Both Systems: CRTSAVF lib/savf
    Source system: SAVLIB or SAVOBJ to lib/savf
    Source system: FTP target-system
    Sign-in
    Then do:
    BIN
    NAMEFMT 0
    PUT lib/savf lib/savf
    QUIT
    On target-system: RSTLIB or RSTOBJ from lib/savf.
    "Not that I need one; but I.T. is just one more reason to drink, and drink heavily! Also, they claim there is too much violence in the workplace, perhaps there isn't enough."

    Comment


    • #3
      Re: transfer file between 2 as400

      If you are using WDSc, RDp or whatever its name is:
      1. create the save file on your source system
      2. save the library in your save file
      3. Open a connection for each of your systems in RPp
      4. copy and paste the save file from one system/library to the other system/library
      5. Restore the library on the other system

      Birgitta
      Last edited by B.Hauser; December 9, 2011, 02:42 AM.

      Comment


      • #4
        Re: transfer file between 2 as400

        Look into the SAVRST commands.
        You will need object connect installed on your system (at v5r4 it was 5722ss1 option 22)

        Best of Luck
        GLS
        The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

        Comment


        • #5
          Re: transfer file between 2 as400

          sorry im noob
          i dont understand

          Comment


          • #6
            Re: transfer file between 2 as400

            Originally posted by GLS400 View Post
            Look into the SAVRST commands.
            You will need object connect installed on your system (at v5r4 it was 5722ss1 option 22)

            Best of Luck
            GLS
            hi
            in RMTLOCNAME i must write 1.1.1.2.nameas400 right?

            (command for know name of as400? )

            Comment


            • #7
              Re: transfer file between 2 as400

              PS: is possible to use iseries navigator?

              Comment


              • #8
                Re: transfer file between 2 as400

                Originally posted by mistake View Post
                hi
                in RMTLOCNAME i must write 1.1.1.2.nameas400 right?

                (command for know name of as400? )
                if you have the IP address you don't need the name...just use the IP address!
                I'm not anti-social, I just don't like people -Tommy Holden

                Comment


                • #9
                  Re: transfer file between 2 as400

                  Originally posted by tomholden View Post
                  if you have the IP address you don't need the name...just use the IP address!
                  no if i write the ip dont work

                  Comment


                  • #10
                    Re: transfer file between 2 as400

                    so ftp '1.1.1.2' doesn't work? if you don't enclose the IP address in quotes (or prompt the command to key it in) it will fail (why IBM didn't accommodate for this i have no clue but it's just what we have to live with)
                    I'm not anti-social, I just don't like people -Tommy Holden

                    Comment


                    • #11
                      Re: transfer file between 2 as400

                      Originally posted by tomholden View Post
                      so ftp '1.1.1.2' doesn't work? if you don't enclose the IP address in quotes (or prompt the command to key it in) it will fail (why IBM didn't accommodate for this i have no clue but it's just what we have to live with)
                      yes ftp work

                      but is not the same savcrt...

                      Comment


                      • #12
                        Re: transfer file between 2 as400

                        for using the SAVRSTxxx commands you must have the additional configuration for connections set up (which is why I don't use them) it's not that hard to duplicate just nothing but FTP and RCMD (which is basically all those commands do).
                        I'm not anti-social, I just don't like people -Tommy Holden

                        Comment


                        • #13
                          Re: transfer file between 2 as400

                          yes but is a library.
                          and the ftp command dont work for library, then i must copy in file then restore in the second server...

                          Comment


                          • #14
                            Re: transfer file between 2 as400

                            1)Create a SAVF on the production AS/400. This of a savf as a zip file that doesn't compress and can only hold one directory (library).

                            CRTSAVF QGPL/MYSAVF (you can replace QGLP with any library of your choice and MYSAVF with any name you want)

                            2)Do the savlib command to copy the information into the SAVF

                            SAVLIB LIB(JDEDWARDS) DEV(*SAVF) SAVF(QGPL/MYSAVF)
                            --Replace JDEDWARDS with the library you want to back up and the QGPL/MYSAVF should be whatever you used in step one)

                            3) Copy the information down to your PC using FTP. You must make sure that you use a BINARY transfer.

                            ftp yoursystem.com (or IP address)
                            login using your username and password
                            At the ftp prompt type in a "BI" and hit enter to change the type to binary
                            then type in "GET QGPL/MYSAVF c:\mysavf.sav" -- replacing the QGPL/MYSAVF with what you used in step one, you can also use any name you want for the "mysavf.sav"

                            4) Create another empty SAVF on the test AS/400
                            CRTSAVF QGPL/MYSAVF

                            5) Send the information from your PC to the test AS/400
                            ftp yoursystem.com (or IP address)
                            login using your username and password
                            At the ftp prompt type in a "BI" and hit enter to change the type to binary
                            then type in "PUT c:\mysavf.sav QGPL/MYSAVF c:\mysavf.sav" -- replacing the QGPL/MYSAVF with what you used in step one and the "mysavf.sav" with whatever you used in step 3.

                            6) Restore the information on the test AS/400
                            RSTLIB SAVLIB(JDEDWARDS) DEV(*SAVF) SAVF(QGPL/MYSAVF)
                            replace JDEDWARDS with the library name you backed up the first time and QGPL/MYSAVF with the savf name you used in step 4.



                            god

                            i can write i job?

                            Comment


                            • #15
                              Re: transfer file between 2 as400

                              why bother with FTPing to the PC? just ftp directly to the other system!

                              1) CRTSAVF QGPL/MYFILE
                              2) SAVLIB whatever *savf SAVF(QGPL/MYFILE)
                              3) use ftp to send to remote system (sample ftp script)
                              Code:
                              user password
                              bin
                              namefmt 1
                              cd /[I]targetlibraryname[/I]
                              put myfile.savf
                              quo rcmd RSTLIB [I]whatever[/I] *savf savf(QGPL/MYFILE)
                              and you're done.
                              I'm not anti-social, I just don't like people -Tommy Holden

                              Comment

                              Working...
                              X