ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

Tool to extract all the files of library in my local PC.

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

  • #16
    Re: Tool to extract all the files of library in my local PC.

    Originally posted by TedHolt View Post
    Did you try the timeout command?

    I often do this from a command window on my PC.

    Code:
    ftp> quote timeout 3600
    250 Inactivity time-out set to 3600 seconds.

    Yes it worked too . Thanks a lot. now this is working fine.

    I tried to replicate the same process by other way. i CREATED 2 txt file in my source physical file input and output. Output is to get the log.

    But i cant setup local directory as my local PC.

    This command i used in my input file

    quote site namefmt 1
    CD /HOME
    LCD C:\PINTU
    ASCII
    PROMPT
    mget *.*
    quit


    In output file i am getting below error.

    257 "QGPL" is current library.
    Enter an FTP subcommand.
    > quote site namefmt 1
    250 Now using naming format "1".
    Enter an FTP subcommand.
    > CD /HOME
    250 "/HOME" is current directory.
    Enter an FTP subcommand.
    > LCD C:\PINTU
    Character ( is not allowed in object name. Click image for larger version

Name:	Untitled1.png
Views:	1
Size:	84.7 KB
ID:	126724

    So i cant set up my local pc as LCD and hence i cant transfer data from IFS to local PC using this method

    Comment


    • #17
      Re: Tool to extract all the files of library in my local PC.

      I don't think you specify the drive for the LCD. The ftp server should be set to have you start at a certain / .
      Hunting down the future ms. Ex DeadManWalks. *certain restrictions apply

      Comment


      • #18
        Re: Tool to extract all the files of library in my local PC.

        Hi pintusrm2010:

        I know you can't use c:\ anywhere on the IBMi ftp server.
        If you think about it Every PC on the entire network has a c drive. Which one would ftp pick to send the file to?

        Using the pc ftp server you can use c:\.



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

        Comment


        • #19
          Re: Tool to extract all the files of library in my local PC.

          Originally posted by GLS400 View Post
          Hi pintusrm2010:

          I know you can't use c:\ anywhere on the IBMi ftp server.
          If you think about it Every PC on the entire network has a c drive. Which one would ftp pick to send the file to?

          Using the pc ftp server you can use c:\.



          Best of Luck
          GLS
          That means we can't download data to local folder using input and output FTP approach?? we have to go by pc server ftp nly?

          Comment


          • #20
            Re: Tool to extract all the files of library in my local PC.

            Originally posted by pintusrm2010 View Post
            In output file i am getting below error.

            257 "QGPL" is current library.
            Enter an FTP subcommand.
            > quote site namefmt 1
            250 Now using naming format "1".
            Enter an FTP subcommand.
            > CD /HOME
            250 "/HOME" is current directory.
            Enter an FTP subcommand.
            > LCD C:\PINTU
            Character ( is not allowed in object name. [ATTACH=CONFIG]2670[/ATTACH]

            So i cant set up my local pc as LCD and hence i cant transfer data from IFS to local PC using this method
            It's not clear what your image is showing. Clearly it shows a DB2 file member that resides on your AS/400, but the first line indicates that it is standard output from a FTP session that was connecting to an AS/400. Where did the FTP output come from? How did it get into a DB2 file member?

            The reason I ask is because it potentially indicates a working method of transferring data (the data in the displayed member) into your AS/400. I'm assuming that the FTP log was actually generated on your PC. Did you FTP it to your AS/400? And if it's not generated on a PC, why are you expecting LCD (Local Current Directory) to know what a C: drive is? No AS/400 has a local C: drive.
            Tom

            There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

            Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

            Comment

            Working...
            X