FTP files from mainframe (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: FTP files from mainframe
|
|
|
|
FTP files from mainframe 7 Years, 3 Months ago
|
|
|
John, <p>We have a similar situation were the file names of the sending and receiving files change with every FTP. I wrote a simple RPG IV program to output to an 80 character disk file the script for the FTP. Then we copyfile it with the option to convert to source, to a CL member. The override INPUT then point to the CL member. <p>This works so well for us, we you it to change passwords, etc.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP files from mainframe 7 Years, 3 Months ago
|
Karma: 0
|
|
Sounds great, but unfortunately I didn't understand the last part: "The override INPUT then point to the CL member". Could you please briefly explain, thanks
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP files from mainframe 7 Years, 3 Months ago
|
|
|
In a batch CL program for FTP, you need two overrides, one for INPUT to point to when the FTP script(commands) is to be read from and OUTPUT for where to write the log file. We write to a disk file so we can read the file with a RPG program and pick out the "server status messages" to determine, if the FTP transmission was successful. <p>The server status messages have a 3 digit number and the test, it has been my observation the test is different on different machines. And the 3 digit number is often in the log more than once. Also you indicated you were going to a mainframe, some main frames require the file name on their side of a PUT or GET to be inclose in quotes. <p>IBM has some good info under the Info Center web site: <BR>
<a href="http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/INFOCENT.HTM">http://publib.boulder.ibm.com/pubs/html/as400/v4r4/ic2924/info/INFOCENT.HTM</a>
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP files from mainframe 6 Years, 4 Months ago
|
|
|
I am trying to ftp a large savf in batch. I can interactively send it, but in batch it starts, runs for 8 - 10 minutes and then in my output file I get the following: Unable to send data to server. No response from remote host; all connections closed. There are no error numbers associated with these errors. I also used the same batch cl and sent a savf with only 1 small file in it and that completed successfully. Both AS/400's are on V4R5.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
FTP files from mainframe 6 Years, 4 Months ago
|
Karma: 0
|
|
Is there a way to pass run-time parms to a FTP CLP batch program ? Looking to write a program that would be able to "get" run-time determined files from a mainframe. The parameter would be the name of the mainframe file.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|