Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CLient Access transfer

Status
Not open for further replies.

kcordova

Programmer
Dec 12, 2002
4
US
I'd like to download my rpg/dds/cl sources to a text file. I know how to do it 1 at a time. Is there any way I could download more than 1 source at a time? Please help.

I've done it a once a long time ago using Rumba. I know it involves renaming it as a text file or something. I just don't remember the process.

Thanks in advance.
 
Somebody correct me, if I am wrong,,, but aren't the sources kept as members of the source file, ie QRPGSRC in library MYLIB, so couldn't you just download the whole file? And I understand if I am completely wrong,, so do not hold back..
 
I use ftp file transfer method to download members into my PC.
Here's an example:
1. In your pc create a BAT file an call it like MYFTP. The content should something like below:

@echo Please wait transfer in progress.........
ftp -n -s:C:\MYDIR\MYFTP.txt HOSTNAME > C:\MYDIR\FtpOut.log
notepad C:\MYDIR\FtpOut.log
above example means run ftp using MYFTP.txt located in c:\MYDIR from the host computer(AS400?). the output log will also be in the same directory and will be opened by notepad for you to check activities.

2. In MYDIR directory create MYFTP.txt file with the following sample contents:

user LOGINID
PASSWORD
ascii
get MYLIB/SOURCE.ProgramName c:\MYDIR\ProgramName.whatever
OR
put c:\MYDIR\ProgramName MYLIB/source.ProgramName

QUIT


note: You can put as many gets or puts in one instance.

Hope this helps.
 
I also use the same ftp methods to AS400 to submit a
job to do a lot of things like compiling the transfered programs or calling a program to process the transfered files.

If you have any questions please don't hesitate.
 
Just forget to mention. If you don't have ftp client in your PC you can always get them in the internet(it's free).
 
Thanks for all your replies. I will try to get it to work.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top