0 pts.
 How can I check the ftp return codes thru the COBOL (z/OS – OS/390 3.2.0) program? Any help is greatly appreciated. Thanks.
I am sending some zipped files to a server, using IBM FTP CS V1R4(exec pgm=ftp). Ftp always returns code of zero, even if it didn't go thru. How can I check the ftp return codes thru the cobol program? The following are some FTP return codes I need to check: 530, 532, 553, 552, 451, 425, etc... Any help is greatly appreciated. Thanks.

Software/Hardware used:
ASKED: February 24, 2005  10:22 AM
UPDATED: March 3, 2005  9:47 AM

Answer Wiki:
If you check the Search390 site you'll find several FTP related questions/answers. One response that sounds like what you're looking for is at: http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,,sid63_gci971609,00.html One of Jim Keohane's responses addressed old format RC vs. new format RC (see http://search390.techtarget.com/tip/1,289483,sid10_gci550566,00.html) Hope this helps, Jim
Last Wiki Answer Submitted:  February 24, 2005  1:56 pm  by  BlueKnight   10 pts.
All Answer Wiki Contributors:  BlueKnight   10 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

We use FTP to send files or pick up files (we don’t like using it but this is the only protocol some of our customers have) in an OS390 environment.

We write the FTP log to a MVS dataset and then in a subsequent jobstep parse this log looking to see if the transfer was successful.

If you want to go this way let me know and I can be more specific.

Jason.

 0 pts.

 

The following website has several methods and ideas to automate, batch and check FTP logs:

http://www.as400.com

Just drill down to the “i-series FTP” section.

I use a CL program that automates sending savefiles between i-series boxes. I have a SRC-PF (FTPSRC) that contains two members in MYLIB. The first member (FTPCMD) is used as the FTP input that contains the actual FTP commands. The second member (FTPLOG) is the redirected FTP output that contains the log. The example CL program is:

OVRDBF FILE(INPUT) TOFILE(UTLLIB/FTPSRC) MBR(FTPCMD)
CLRPFM FILE(UTLLIB/FTPSRC) MBR(FTPLOG)
OVRDBF FILE(OUTPUT) TOFILE(UTLLIB/FTPSRC) MBR(FTPLOG)
FTP RMTSYS(‘ip address’)
DLTOVR FILE(INPUT)
DLTOVR FILE(OUTPUT)

 0 pts.