ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

ftp to as400 from desktop

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

  • ftp to as400 from desktop

    How can I ftp .txt files from my desktop to AS400?
    Please give me all commands in exact order.




    Thanks
    sateeshs

  • #2
    Re: ftp to as400 from desktop

    hit the start button on your pc
    then select run

    you will get a dos window


    then type ftp 10.0.1.1
    (or what ever your iseries IP address is)
    use netstat to get ip if you dont know


    type BIN to go into binary mode

    place you pc file directly on the c:/drive

    then

    put c:/sometextfile.txt mylibrary/mysource


    --or--

    use opperations navigator and just drag and drop to IFS
    then use cpyfrmimpf , cpyfrmstmf or cpytopcd to get to your source
    file


    Jamie
    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


    • #3
      Re: ftp to as400 from desktop

      jamie,
      thanks for that . But I not able to see the file in my library in AS400. In Dos window, it says File Transfer completed successfully. Where am I going wrong?
      These are the commands I typed

      ftp>bin

      ftp>put c:/abc.txt srinivas/qddssrc

      Comment


      • #4
        Re: ftp to as400 from desktop

        because you cannot specify a member it is using the first member in the file qddssrc.

        it most likely is appending the transfered text file to the end of this member.

        easiest way to find this member is DBU QDDSSRC and see what pops up


        Jamie
        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


        • #5
          Re: ftp to as400 from desktop

          jamie,
          I managed to find the file I sent from C:\ drive to As400 in As400. But It has come in as a Physical File. I want this converted to CLLE type. How to change the object type from *FILE to *pgm(clle program)? Please help

          Thanks
          sateeshs

          Comment


          • #6
            Re: ftp to as400 from desktop

            try addpfm and cpyf

            Jamie
            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


            • #7
              Re: ftp to as400 from desktop

              hi jamie.. i tried doing the steps mentioned by you, but the PF I receive on iSeries is not readable. I had used BIN (for binary transmission).

              Comment


              • #8
                Re: ftp to as400 from desktop

                Look here.
                Philippe

                Comment


                • #9
                  Re: ftp to as400 from desktop

                  Today i ran into this problem. the ftp commands show that the file has been moved to the savefile. But when i try to restore the objects, there is nothing in the save-file!!!
                  Attached Files

                  Comment


                  • #10
                    Re: ftp to as400 from desktop

                    You can FTP a save file to the 400. You can not FTP a file into a save file on the 400. save files are created on the 400 and then objects are placed in them.
                    Is the xtools0715 a save file or something else?
                    Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

                    Comment


                    • #11
                      Re: ftp to as400 from desktop

                      Hi rlg560:

                      From what I'm reading library SAVELIB has a physical file XTOOLS715 with your data.....
                      ....No QGPL....No savefile

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

                      Comment


                      • #12
                        Re: ftp to as400 from desktop

                        Originally posted by DeadManWalks View Post
                        You can FTP a save file to the 400. You can not FTP a file into a save file on the 400. save files are created on the 400 and then objects are placed in them.
                        Is the xtools0715 a save file or something else?

                        The save file has already been created. I am trying to put that file xtools0715 into that save-file which has the same name. In the dos window you will see that the ftp transfer went through just fine. But now when i am trying to extract that file from the save file and put it into QGPL/xtools0715, i am getting an error message that there is nothing into the save-file.

                        Comment


                        • #13
                          Re: ftp to as400 from desktop

                          Originally posted by GLS400 View Post
                          Hi rlg560:

                          From what I'm reading library SAVELIB has a physical file XTOOLS715 with your data.....
                          ....No QGPL....No savefile

                          Best of Luck
                          GLS
                          Hi GLS400,

                          I have alreday craeted the save-file with the command : CRTSAVF QGPL/XTOOLS0715

                          after that i ftp'ed the file from C:\temp into the savlib/xtools0715 (as per the ftp screen)

                          now when i am trying to restore the file from savlib into the save-file in qgpl, its blowing up.

                          Comment


                          • #14
                            Re: ftp to as400 from desktop

                            When you ftp the file specify xtools0715.savf to tell it to put it into the save file (note the .savf suffix).

                            Comment


                            • #15
                              Re: ftp to as400 from desktop

                              Hi rlg560:

                              Check out Jamie's post here:


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

                              Comment

                              Working...
                              X