ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

how to transfer object and member to as400 host PUB1.RZKH.DE

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

  • how to transfer object and member to as400 host PUB1.RZKH.DE

    hi mate I tried alternatives to transfer my data files to PUB1.RZKH.DE . But I remain Unsuccessful

    Here's what I did to transfer my files from AS400 Box to PC

    1. Iseries transfer from iseries to pc
    - set the source : mylib/qddssrc(pfile1)

    and named the file to import as "pfile1.mbr" by choosing file as output device.
    Named "pfile1.obj" for object file where source location is mylib/pfile1

    Is my method correct?

    now I want to transfer them to PUB1.RZKH.DE. Can anyone help I tired using ftp but still had some problems. In addition, how can I export data files from PUB1.RZKH.DE to my pc?

  • #2
    Re: how to transfer object and member to as400 host PUB1.RZKH.DE

    Download
    - On the iSeries, SAVxxx TGTRLS(V5R3M0) into SAVF. Use TGTRLS(V5R3M0) if the source version is greater than V5R3M0).
    - From the PC, FTP the SAVF to the PC in binary mode.

    Upload
    - From the PC, FTP the SAVF to PUB1.RZKH.DE in binary mode and use the naming format 1 (namefmt 1), that is
    Code:
    /QSYS.LIB/libname.LIB/filename.SAVF
    - On the iSeries, use the RESTOBJ customized command to restore the saved data from the SAVF.

    See also
    http://www.holgerscherer.de/!faqe.html
    Last edited by Mercury; January 14, 2008, 10:35 AM.
    Philippe

    Comment


    • #3
      Re: how to transfer object and member to as400 host PUB1.RZKH.DE

      wow thank you mate! I love you now!

      Comment


      • #4
        Re: how to transfer object and member to as400 host PUB1.RZKH.DE

        Originally posted by binaryghost View Post
        wow thank you mate! I love you now!
        can you give me the steps which u used while ftp ???

        it will be helpful.


        Pramendra
        Young people knows how to run fast but old people knows the way..

        Comment


        • #5
          Re: how to transfer object and member to as400 host PUB1.RZKH.DE

          Originally posted by pramendra View Post
          can you give me the steps which u used while ftp ???

          it will be helpful.


          Pramendra
          i think Mercury's post says it all if you will take the time to read and try to comprehend it.
          Code:
          (i'm assuming you know to do the FTP 'xxx.xxx.xxx.xxx' command first)
          
          user password
          quo site namefmt 1
          bin
          put /QSYS.LIB/libname.LIB/filename.SAVF
          quit
          I'm not anti-social, I just don't like people -Tommy Holden

          Comment


          • #6
            Re: how to transfer object and member to as400 host PUB1.RZKH.DE

            Originally posted by tomholden View Post
            i think Mercury's post says it all if you will take the time to read and try to comprehend it.
            Code:
            (i'm assuming you know to do the FTP 'xxx.xxx.xxx.xxx' command first)
            
            user password
            quo site namefmt 1
            bin
            put /QSYS.LIB/libname.LIB/filename.SAVF
            quit

            hi my files are in local computer say c drive and within temp folder
            how would i put my local computer file to my as400 server.

            I was trying same but i was getting error.

            425 can not open data connection..
            Young people knows how to run fast but old people knows the way..

            Comment


            • #7
              Re: how to transfer object and member to as400 host PUB1.RZKH.DE

              Paste here the FTP script you're using.
              Philippe

              Comment


              • #8
                Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                Originally posted by pramendra View Post
                hi my files are in local computer say c drive and within temp folder
                how would i put my local computer file to my as400 server.

                I was trying same but i was getting error.

                425 can not open data connection..
                until you resolve this issue it doesn't matter what your FTP script is, it's not going to work. from the message you've posted one of 2 things i can think of off the top of my head that can cause this:
                - the user ID used to perform the FTP doesn't have proper authority to push data from/to the server
                - the ftp server is down or not configured properly.
                I'm not anti-social, I just don't like people -Tommy Holden

                Comment


                • #9
                  Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                  Originally posted by Mercury View Post
                  Paste here the FTP script you're using.
                  1st changing my drive...to c:\temp

                  ftp server name

                  user pandeyfl

                  pass *****

                  ascii

                  put textfile qrpglesrc.file/a.mbr


                  i am getting

                  200 data lik...

                  after that....this message is coming

                  425 not able to data conction
                  Young people knows how to run fast but old people knows the way..

                  Comment


                  • #10
                    Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                    is FTP running on the iseries?

                    STRTCPSVR *FTP

                    howbout GET instead of PUT?

                    r you tring to get the file from the iseries to the PC?
                    if so then GET
                    All my answers were extracted from the "Big Dummy's Guide to the As400"
                    and I take no responsibility for any of them.

                    www.code400.com

                    Comment


                    • #11
                      Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                      can you please tell how to specify(change) local folder...c:\temp

                      how would server know which location our file is???

                      confused
                      Young people knows how to run fast but old people knows the way..

                      Comment


                      • #12
                        Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                        Originally posted by jamief View Post
                        is FTP running on the iseries?

                        STRTCPSVR *FTP

                        howbout GET instead of PUT?

                        r you tring to get the file from the iseries to the PC?
                        if so then GET

                        well i tried in that way...to get my server file into local but what transfered is blank..

                        error was 425 not open data connectiom
                        Young people knows how to run fast but old people knows the way..

                        Comment


                        • #13
                          Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                          You are using an AS400 provider. Do you have authority to the library(ies)?
                          Do a DIR once you've logged on to check which library you logged onto. Are you using Passive or Active?
                          Regards

                          Kit
                          http://www.ecofitonline.com
                          DeskfIT - ChangefIT - XrefIT
                          ___________________________________
                          There are only 3 kinds of people -
                          Those that can count and those that can't.

                          Comment


                          • #14
                            Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                            Besides the issue on the connection, here's what works to upload data from Windows to member A of MyLib/QRPGLESRC source file on the Holger Scherrer's system. This system requires the U/L & D/L be in namefmt 1 mode.

                            Code:
                            ftp servername (or IP address)
                            user pandeyfl
                            pass *****
                            lcd c:\temp
                            NOPE Namefmt 1 could be used but is not required 
                            NOPE It is implicitly accepted provided that the
                            NOPE  "QSYS.LIB" writing is used as shown below
                            put textfile   /QSYS.LIB/MyLib.LIB/QRPGLESRC.FILE/A.MBR
                            quit
                            Philippe

                            Comment


                            • #15
                              Re: how to transfer object and member to as400 host PUB1.RZKH.DE

                              Originally posted by pramendra View Post
                              can you please tell how to specify(change) local folder...c:\temp

                              how would server know which location our file is???

                              confused
                              geez computer science 101 class again.

                              from a DOS prompt change your directory (if the drive in the prompt looks like this C:/ then type in cd temp now you're in the C:\temp directory...see how easy that was?) after that do the FTP command (remember you are still in the c:\temp directory just in case you missed that) then simply put myfile.txt (replace myfile.txt with the name of the file you are trying to push to the system.

                              tomorrow's lesson we'll discuss how to reboot Windoze...
                              I'm not anti-social, I just don't like people -Tommy Holden

                              Comment

                              Working...
                              X