Page 1 of 1

FTP a PDS using REXX.

Posted: Wed Dec 02, 2015 1:50 pm
by Prakash Jha
Hi,

For a requirement I need to get the members of a PDS on my PC. $INDSFILE is not that helpful. I thought of using FTP but I might need to do this multiple times, so I am thinking if this can be done using REXX. I am not sure how can we do it with REXX, if someone can suggest something on this it will be a great help.

Re: FTP a PDS using REXX.

Posted: Wed Dec 02, 2015 2:13 pm
by enrico-sorichetti
REXX ...
1) on the mainframe side
2) the PC side ?

for case 1 You will need to have a FTP server running on Your workstation
and I doubt Your organization will let You do it.

for case 2 You will have to install on Your workstation <some> king of rexx interpreter
- if this were the case I strongly suggest open object Rexx , it has a pretty powerful FP interface
and probably You will not be allowed to

I guess that You will be stuck to good old plain ftp
from the command line ( terminal window )
from some GUI ftp interface

in any case the process must be authorised by Your support.

for the command line solution

see here
viewtopic.php?f=35&t=1700&hilit=ftp

Re: FTP a PDS using REXX.

Posted: Wed Dec 02, 2015 2:36 pm
by Prakash Jha
enrico-sorichetti wrote:REXX ...
1) on the mainframe side
2) the PC side ?

for case 1 You will need to have a FTP server running on Your workstation
and I doubt Your organization will let You do it.

for case 2 You will have to install on Your workstation <some> king of rexx interpreter
- if this were the case I strongly suggest open object Rexx , it has a pretty powerful FP interface
and probably You will not be allowed to

I guess that You will be stuck to good old plain ftp
from the command line ( terminal window )
from some GUI ftp interface

in any case the process must be authorised by Your support.

for the command line solution

see here
viewtopic.php?f=35&t=1700&hilit=ftp
I was thinking to do it only on mainframes side but I can try to do it on PC side also. But in office PC I won't be allowed to install the OOREXX.
for case 1 You will need to have a FTP server running on Your workstation
and I doubt Your organization will let You do it.
I did not understand your question. When I try to download a file from my PC I am allowed to do it. So I think I can FTP but I have to do it many time, so a REXX seems like a good way to go.

Re: FTP a PDS using REXX.

Posted: Wed Dec 02, 2015 3:19 pm
by enrico-sorichetti
When I try to download a file from my PC I am allowed to do it.
How do You do it ???

Re: FTP a PDS using REXX.

Posted: Wed Dec 02, 2015 6:36 pm
by Robert Sample
For a requirement I need to get the members of a PDS on my PC
FTP works great for this. Access FTP from the PC, connect to the mainframe, issue a CD to the PDS, and MGET * to retrieve all members of the PDS into your PC directory as separate files. You may need to turn prompting off so FTP doesn't ask about getting each member, depending upon how your site is set up.

Re: FTP a PDS using REXX.

Posted: Thu Dec 03, 2015 2:34 pm
by Prakash Jha
enrico-sorichetti wrote:
When I try to download a file from my PC I am allowed to do it.
How do You do it ???
Using run, cmd and FTP and cd PDS on windows.

Re: FTP a PDS using REXX.

Posted: Thu Dec 03, 2015 2:42 pm
by Prakash Jha
Robert Sample wrote:
For a requirement I need to get the members of a PDS on my PC
FTP works great for this. Access FTP from the PC, connect to the mainframe, issue a CD to the PDS, and MGET * to retrieve all members of the PDS into your PC directory as separate files. You may need to turn prompting off so FTP doesn't ask about getting each member, depending upon how your site is set up.
Hi Robert, Yes I am doing it this way but I want to make it automated as if whenever I need to do it I execute a REXX instead of running it all manually...