View Full Version : AS/400 to NT FTP
01-01-1995, 02:00 AM
Can someone please help. I'm trying to create a cl program to ftp a NT workstation, retrieve files from that workstation to the 400 and then kick off a program to process those files.
12-09-1999, 03:46 AM
Unfortunately the AS/400 doesn't provide a good command-line based way to FTP files to/from anything. I know News/400 and possibly MRC have provided some decent sample programs that show you how to FTP files from the AS/400. It's usually pretty messy to go the manual coding route because you have to manually create FTP scripts and then write a CL program to do file overrides, etc...... and then there's no good error checking. Check out News/400 and MRC for sample code. If you decide to go the commercial route, download a copy of our FTP/400 product from our web site. It will make your life a lot easier. You can Send/Receive AS/400 files from any library or the IFS to any FTP server along with error checking. It also supports the running of remote commands if the FTP Server supports remote commands. Regards, Richard Schoen RJS Software Systems Email: email@example.com Web Site: http://www.rjssoft.com
12-09-1999, 04:15 AM
Look at these documents, if the link does not work let me know. I have done this plenty of times and it works great. Very easy too. http://publib.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/qb3anl01/22.214.171.124
12-09-1999, 05:35 AM
Mark, We use batch FTP at our shop to. Look at Greg's example. You can set up 2 source members (type TXT). One will contain your FTP commands (INPUT) and the other is used to capture logging information (OUTPUT). You can call an RPG program to update the FTP command file (INPUT) with user ID, password, file name, etc. and then execute the overrides & the FTP command.
12-09-1999, 11:22 AM
There's also an article out on the AS/400 NetJava Web site called "FTP File Transfers While You Sleep" (http://www.midrangecomputing.com/anje/article.cfm?id=268&md=19996) that's a good introduction to FTP on the AS/400. It contains some basic info and a tutorial as to how to set up batch FTP as an unattended transfer. HTH Joe Hertvik Editor-AS/400 Network Expert http://www.midrangecomputing.com/ane mailto:firstname.lastname@example.org
06-08-2000, 06:05 PM
Well that bit of information was cool but I have gotten to that point already I am transfering files from the AS/400 to the PC the problem I have is that some of the files that I fave to transfer have packed data fields in them and when they come across to the PC the packed data fields come over as garbage, what can I do any help is apprechiated email@example.com
06-26-2000, 01:39 PM
I gave this tip else where too (Client Access and packed decimal): Having experimented with FTP a little I discovered to use logical files (LF) over the physical (PF) may do the trick. You can make a selction of the desired fields, too; it is like creating a view in SQL. In the LF I changed the data type of the packed fields into zoned. (I also gave the LF the primary access path (keys))
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.