FTP a PDS using REXX.
Moderator: mickeydusaor
-
- Registered Member
- Posts: 62
- Joined: Sat Jun 29, 2013 1:45 pm
FTP a PDS using REXX.
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.
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.
-
- Global Moderator
- Posts: 832
- Joined: Wed Sep 11, 2013 3:57 pm
Re: FTP a PDS using REXX.
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
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
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
-
- Registered Member
- Posts: 62
- Joined: Sat Jun 29, 2013 1:45 pm
Re: FTP a PDS using REXX.
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.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 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.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.
-
- Global Moderator
- Posts: 832
- Joined: Wed Sep 11, 2013 3:57 pm
Re: FTP a PDS using REXX.
How do You do it ???When I try to download a file from my PC I am allowed to 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
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
- Robert Sample
- Global Moderator
- Posts: 1898
- Joined: Fri Jun 28, 2013 1:22 am
- Location: Dubuque Iowa
Re: FTP a PDS using REXX.
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.For a requirement I need to get the members of a PDS on my PC
-
- Registered Member
- Posts: 62
- Joined: Sat Jun 29, 2013 1:45 pm
Re: FTP a PDS using REXX.
Using run, cmd and FTP and cd PDS on windows.enrico-sorichetti wrote:How do You do it ???When I try to download a file from my PC I am allowed to do it.
-
- Registered Member
- Posts: 62
- Joined: Sat Jun 29, 2013 1:45 pm
Re: FTP a PDS using REXX.
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...Robert Sample wrote: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.For a requirement I need to get the members of a PDS on my PC
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