Page 1 of 1
Help in FTP a PDS.
Posted: Thu Oct 22, 2015 1:52 pm
by utkarsh
I need to FTP an entire PDS. I have successfully done the FTP for a file but how to go for a PDS?
Code: Select all
???.??.???.?? (exit=40
userid
passwd
cd foldername
put 'THE.PDS(*)'
quit
PDS has 70+ memebers. Could you please help me with this?
Re: Help in FTP a PDS.
Posted: Thu Oct 22, 2015 2:00 pm
by nicc
What environment are you FTPing to?
Re: Help in FTP a PDS.
Posted: Thu Oct 22, 2015 2:29 pm
by enrico-sorichetti
the operating system used on the local and remote are pretty much irrelevant for the FTP logic
( given that both support the same data types )
on the system where You are issuing the FTP command - the local system
cd to the directory where You want to carry on the operation ( get/put)
remember that on ZOS a PDS can be seen from the unix side as a directory
cd /first_qalifier
cd second_qualifier
cd ... ...
issue an ls command and You will see the member list
issue the ftp command
now the ftp shell is on the remote file system
as You have done on the local system
issue the commands
cd /first_qalifier
cd second_qualifier
cd ... ...
prompt
mget *
or
mput *
as needed
...
You can even FTP load modules between systems
Re: Help in FTP a PDS.
Posted: Thu Oct 22, 2015 3:30 pm
by nicc
And if the output is wanted on Windoze? It doesn't know about PDSes.
Re: Help in FTP a PDS.
Posted: Thu Oct 22, 2015 4:09 pm
by enrico-sorichetti
same logic Nic!
a PDS name is logically equivalent to a PATH
ENRICO.ISPF.EXECS
could be mapped to ( Linux/Darwin ) - absolute
/ENRICO/ISPF/EXECS
or wanting to respect the PREFIX logic ( LINUX Notation )
$HOME/ISPF/EXECS
where $HOME is the path for the user things
/home/enrico on linux
/Users/enrico on Darwin
and the members would just be files in directory
but really what counts is the equivalence on the MVS side
on the PC no need to have a formal structure of the path
Re: Help in FTP a PDS.
Posted: Thu Nov 19, 2015 5:10 pm
by utkarsh
Ithink I was missing the double quotes around the PDS name. Giving them it worked for me.
Re: Help in FTP a PDS.
Posted: Thu Nov 19, 2015 9:43 pm
by RSchreiber
I recommend that you try WS*FTP. It works really well with z/OS and z/VM. It is not free, but well worth the money.
http://http://www.ipswitchft.com/ws-ftp-client
I have no relationship with this company. Just a happy user.
Re: Help in FTP a PDS.
Posted: Fri Nov 20, 2015 9:14 am
by RSchreiber
In my previous post I recommended WS*FTP. Its a fine product but its not what I use with z/OS and z/VM.
I use Filezilla and its free.
"Nevermind"
Re: Help in FTP a PDS.
Posted: Fri Nov 20, 2015 10:44 am
by Anuj Dhawan
RSchreiber wrote:In my previous post I recommended WS*FTP. Its a fine product but its not what I use with z/OS and z/VM.
I use Filezilla and its free.
Are you saying that you use Filezilla for FTP, with zOS and windows? I've not tried Filezilla with zOS but if it is allowed at your shop, it's a very interesting preposition!