Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

FTP using REXX program

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: FTP using REXX program
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Sat Nov 21, 2009 1:17 pm    Post subject: Reply to: FTP using REXX program
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    Post subject: Reply to: FTP using REXX program
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

Moderator Team Head


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

PostPosted: Sat Nov 21, 2009 6:30 pm    Post subject: Reply to: FTP using REXX program
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Sat Nov 21, 2009 7:15 pm    Post subject: Reply to: FTP using REXX program
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: 7989
Location: Bellevue, IA

PostPosted: Sat Nov 21, 2009 7:17 pm    Post subject:
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

Site Director


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

PostPosted: Sun Nov 22, 2009 3:27 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us