Q
Problem solve Get help with specific problems with your technologies, process and projects.

FTP help

A reader wrote in asking for help with an FTP job. See what help expert Mark Zelden offered.

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?

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 last published in June 2006

Dig Deeper on IBM system z and mainframe systems

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

SearchServerVirtualization

SearchCloudComputing

Close