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.

0 pts.
Tags:
DataCenter
Development
IBM
zSeries
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.
ASKED: February 24, 2005  10:22 AM
UPDATED: March 3, 2005  9:47 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Yarson
    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 pointsBadges:
    report
  • DPSFizz
    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 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following