View previous topic :: View next topic
|
Author |
Message |
joneyb
New User
Joined: 24 Sep 2008 Posts: 2 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
Quote: |
... to my host computer's C drive from mainframe. |
huge paradigm shift
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 |
|
|
joneyb
New User
Joined: 24 Sep 2008 Posts: 2 Location: India
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
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 |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|