IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

FTP using REXX program


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
joneyb

New User


Joined: 24 Sep 2008
Posts: 2
Location: India

PostPosted: Sat Nov 21, 2009 10:21 am
Reply with quote

Hi All,

Firstly I am giving the background of my requirement. I need to develop a tool which will do certain operation and will create a file and after that it will transfer that file to my host computer's C drive from mainframe.

But I am not very sure how to proceed with this file transfer process. Could you please help me out to write down the code for this file transfer from mainframe to C drive in REXX?

It will also be great help if you already have this part of code and share that with me.

Thanks
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 21, 2009 1:17 pm
Reply with quote

Quote:
... to my host computer's C drive from mainframe.

huge paradigm shift icon_rolleyes.gif

has the requirement been approved by Your standards and practices support ??

to implement such approach You would need to activate an FTP server on Your so called <host>
and usually such a thing is frowned upon

I suggest to review Your requirement with the proper people!
Back to top
View user's profile Send private message
joneyb

New User


Joined: 24 Sep 2008
Posts: 2
Location: India

PostPosted: Sat Nov 21, 2009 5:29 pm
Reply with quote

Thanks for your reply..We need this to reduce some of our manual works..If it is not the ftp then anything which can transfer files from mainframe to host machine using rexx will work fine for me. Please let me know if you have any alterative approach.
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Nov 21, 2009 6:30 pm
Reply with quote

joneyb, your requirement is rather vague. You keep mentioning REXX, yet I can tell you there is no magical facility or utility in REXX for file transfer. You haven't really provided much detail in regards to the exact process you want to use, and the methods you want to follow to accomplish your goal.

Basically, if there is a command that you can issue in TSO, or use in batch, or in Unix Systems Services, then you most likely can write a REXX exec to issue the same commands. We don't know anything about your site, how it's configures, what is and isn't allowed, etc. You need to provide all of those details.

And no, you can't issue the IND$FILE command from TSO.

Have you looked into using the ISPF File Transfer (Option 3.7) facility?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 21, 2009 7:15 pm
Reply with quote

Quote:
from mainframe to host machine

repeat 2**gazillions times
the mainframe is the host the <thing with the keyboard> on the desk is not the host
that all Your bytes lose their parity icon_biggrin.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Sat Nov 21, 2009 7:17 pm
Reply with quote

Quote:
anything which can transfer files from mainframe to host machine
This is where the problem comes from. To transfer something to a "host machine" (as you call it -- most of the world calls it a "server"), something (that is, a software program) on the "host machine" has to be listening on a port for requests to be processed. A desktop machine can do so with special software but few sites will allow desktop machines to do this as it creates process and security issues.

Your best bet would be to discuss your requirements with your site support group and have them tell you which existing server you should be connecting to for this application. Once they have done so, connecting to a server via FTP is not a problem -- and then you can transfer your data to the server (not your desktop machine).
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sun Nov 22, 2009 3:27 am
Reply with quote

Hello and welcome to the forum,

Said slightly differently, for the mainframe to "send" the file to your desktop, your desktop would need to be configured as an "ftp server". This is not allowed in most organizations (for various reasons, security being one of them).

However, your desktop can be an ftp client. . .

Anticipating that the mainframe does have an ftp service, you could schedule a batch process on your desktop to log onto the mainframe and download the file.

You would accomplish the automation without needing a new configuration and/or special permission from the admin/support group.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Using API Gateway from CICS program CICS 0
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top