Ask the Expert

Automating FTP transfers to AIX

Does the mainframe have the equivalent of .netrc to automate FTP transfers to AIX?

Requires Free Membership to View

I'm not famililar with .netrc, but the mainframe does have several ways to perform automatic FTPs.

There is an FTP program you may invoke from batch jobs where you provide the FTP commands in a series of input cards. The good news is you can use this method to send and receive files from a scheduled batch or ad-hoc jobs. The problem is that the control cards aren't very flexible and, depending on your security set up, you may have to include the password in clear text. Some of these deficiencies can be avoided if you write another program to create the control cards on the fly before passing them to the FTP program.

You can also write your own program using FTP's protocol. This gives you a lot more flexibility dealing with errors and different servers. It is also more secure.

In either case, get in touch with some mainframe friends or look at the appropriate IBM manuals.

This was first published in September 2007

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

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
Sort by: OldestNewest

Forgot Password?

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

Your password has been sent to: