FTP help
How can I FTP multiple files to MVS PDS? I was able to use MPUT from PC multiple files to PDS. Now I am trying to run the batch job from mainframe to MGET files into PDS. But it doesn't recognize PDS as a directory and creates multiple files with VB format appending name of the file to the PDS name. Could you please suggest what I am doing wrong?

    Requires Free Membership to View

    When you register, you’ll also receive targeted alerts from my team of editorial writers and independent industry experts with the latest news, tips, and advice to help you do your job more efficiently and effectively. Our goal is to keep you informed on the hottest topics and biggest challenges faced by IT professionals today working with data center technologies.

    Cathleen A. Gagne, Senior Editorial Director

    By submitting your registration information to SearchDataCenter.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDataCenter.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

I'm not sure I understand exactly what the problem is. Are you trying to MPUT to the z/OS, or trying to MGET from z/OS? If you are using MPUT from your PC then you don't use MGET after MPUT. Here is an example of the commands to use after your userid / password have been entered. The PROMPT command will toggle prompting so you are not asked to verify each PDS member:

cd 'MY.FULLY.QUALFIED.PDS.NAME'
lcd /local/dir
prompt
mput *

Note that the file names in /local/dir must conform to MVS PDS member name conventions.

If you are trying to do MGET from z/OS instead of MPUT from the PC, please see this past response of mine that available at the TechTarget Expert Answer Center: How can I FTP many PC files to z/OS and save them to a single PDS?

You can also search the Expert Answer Center and find other similar questions and answers.

This was first published in June 2006