FTP a PDS using REXX.

Time Sharing Option, Interactive System Productivity Facility and REstructured eXtended eXecutor

Moderator: mickeydusaor

Post Reply
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

FTP a PDS using REXX.

Post 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.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: FTP a PDS using REXX.

Post 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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

Re: FTP a PDS using REXX.

Post 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.
enrico-sorichetti
Global Moderator
Global Moderator
Posts: 826
Joined: Wed Sep 11, 2013 3:57 pm

Re: FTP a PDS using REXX.

Post by enrico-sorichetti »

When I try to download a file from my PC I am allowed to do it.
How do You do it ???
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort 8-)
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1895
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: FTP a PDS using REXX.

Post 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.
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

Re: FTP a PDS using REXX.

Post 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.
Prakash Jha
Registered Member
Posts: 62
Joined: Sat Jun 29, 2013 1:45 pm
India

Re: FTP a PDS using REXX.

Post 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...
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “TSO, ISPF & REXX (Do you still do CLIST?!).”