|
Rob - See below... If you are using the native FTP in windows by opening a command window, then FTP xxx.xxx.xxx.xxx to get the the AS/400, unless you qualify the PC folder where you want the files placed, they will be placed in the current folder shown in the command window. If you want them placed elsewhere by default, you need to change directory (on the PC) to get into the correct folder _before_ starting FTP. Example: 1) I Open a DOS command window by clicking the appropriate Windows Icon in Programs > Accessories (depends on the version of Windows running). In my case, I get D:\Documents and Settings\sjl>. 2) Now I type FTP xxx.xxx.xxx.xxx to start an FTP session to my AS/400 system. Once logged on the the AS/400, I have the FTP> prompt. 3) at the FTP prompt, I type CD AUSLMPLIB to make AUSLMPLIB my current library 4) Now I type QUOTE SITE NAMEFMT 0 to see objects in library mode ... (FILENAME.MEMBER) 5) Now I type GET QRPGSRC.SRCMBR1 SRCMBR1.TXT...This will transfer member named SRCMBR1 from file QCLSRC in library AUSLMPLIB (the current library) to a PC text file named SRCMBR1.TXT in the current folder on the PC (D:\Documents and Settings\SJL)...So the transferred member will be at D:\Documents and Settings\SJL\SRCMBR1.TXT. 6) If I wanted the transferred source member in a folder other than the current folder for the DOS window, I can use the GET command as follows: GET QRPGSRC.SRCMBR1 D:\DOWLOADS\SRCMBR1.TXT...this will force the downloaded file to go to the specified folder. 7) Or, if i had typed the command "CD \downloads" in the DOS window _before_ running the FTP command (before step 1 above), I could transfer the file like this: GET QRPGSRC.SRCMBR1 SRCMBR1.TXT and it would be copied by default to D:\DOWNLOADS\SRCMBR1.TXT. HTH Steve Landess Austin, Texas (512) 423-0935 > ----- Original Message ----- > From: "Rob Phillips" <niceguy420l@yahoo.com> > To: "Midrange Systems Technical Discussion" <midrange-l@midrange.com> > Sent: Thursday, January 09, 2003 9:38 AM > Subject: Re: Copying source > > > > > > I tried this it seemed to work but I cannot find it on the PC. The > published command does not put it anywhere on the PC. I tried adding the put > part but it didn't do it. > > Rob > > Steve Landess <steve_landess@hotmail.com> wrote:Use FTP, if you have a > TCP/IP connection from the PC to the AS/400... > > > > This method gives you the added advantage of transferring multiple members > > with one MGET command (technique I learned here on midrange-l).... > > > > See this link (for additional information, search on "mget" in the > midrang-l > > archives): > > > > http://archive.midrange.com/midrange-l/200209/msg00526.html > > > > Steve Landess > > Austin, Texas > > (512) 423-0935 > > > > ----- Original Message ----- > > From: "Rob Phillips" > > To: > > Sent: Tuesday, January 07, 2003 11:22 AM > > Subject: Copying source > > > > > > > > > > HI I would like to copy some RPG source and bring it to a PC file. Other > > than copy/paste, is there a better way? > > > > > > Thanks, > > > > > > Rob Phillips > > > > > > Senior Programmer Analyst > > > > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > New DSL Internet Access from SBC & Yahoo! > > > _______________________________________________ > > > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > > list > > > To post a message email: MIDRANGE-L@midrange.com > > > To subscribe, unsubscribe, or change list options, > > > visit: http://lists.midrange.com/mailman/listinfo.cgi/midrange-l > > > or email: MIDRANGE-L-request@midrange.com > > > Before posting, please take a moment to review the archives > > > at http://archive.midrange.com/midrange-l. > > > > > _______________________________________________ > > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > list > > To post a message email: MIDRANGE-L@midrange.com > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/mailman/listinfo.cgi/midrange-l > > or email: MIDRANGE-L-request@midrange.com > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/midrange-l. > > > > > > > > --------------------------------- > > Do you Yahoo!? > > New DSL Internet Access from SBC & Yahoo! > > _______________________________________________ > > This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing > list > > To post a message email: MIDRANGE-L@midrange.com > > To subscribe, unsubscribe, or change list options, > > visit: http://lists.midrange.com/mailman/listinfo.cgi/midrange-l > > or email: MIDRANGE-L-request@midrange.com > > Before posting, please take a moment to review the archives > > at http://archive.midrange.com/midrange-l. > > >
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.