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
 

 

Sending file to Host through REXX

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed Mar 01, 2006 6:52 pm    Post subject: Sending file to Host through REXX
Reply with quote

Hi,

Can anyone help me in sending a PS file or PDS member to Host through REXX?

Thanks
Antu
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: Wed Mar 01, 2006 6:56 pm    Post subject: Re: Sending file to Host through REXX
Reply with quote

What host? And, what specific problem are you experiencing? TSO/E REXX (unless you are running z/OS v1.8) doesn't provide any functions for file transfer, so I'm not clear where you're going with your post.
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Wed Mar 01, 2006 7:13 pm    Post subject:
Reply with quote

By host, I meant sending files to local harddisk..

We use IBM Personal Communications to connect to Mainframe. IBM Personal Communications supports sending and receiving files to/from host(local harddisk) to Mainframe.

Actually it uses INDFT0 IBM File Transfer Program to send or receive.


Can I do this through REXX?
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: Wed Mar 01, 2006 7:29 pm    Post subject:
Reply with quote

antonrino.b wrote:
Can I do this through REXX?


Let me reiterate my previous statement. "TSO/E REXX (unless you are running z/OS v1.8) doesn't provide any functions for file transfer."

I don't know a lot about the technical details of the PCOMM product, but I believe that it does support scripting to automate repetitive functions. Could you write the script in REXX? Probably. presuming that you have one of the Windows versions of REXX available (Regina, WinRexx, etc.). However, that entire discussion is probably best left to another forum.

Let me close by offering these suggestions. You can transfer files between two servers using any number of commercially available file transfer tools - FTP, CONNECT:Direct, XCOM, Procomm, PC-Anywhere, etc. These have to be installed and configured on a workstation in order to be used. Once installed, they can be automated by just about any means you choose.

ISPF offers a file transfer facility (option 3.7) that allows you to download and install a workstation agent, then, with that agent active, using ISPF services, you can transfer files between machines. Since this process uses ISPF services, it can be automated using standard ISPF service calls from any application programming language you choose.
Back to top
View user's profile Send private message
brgr88

New User


Joined: 05 Mar 2006
Posts: 6

PostPosted: Sun Mar 05, 2006 5:34 am    Post subject:
Reply with quote

Antu,

If you want a copy of a mainframe file on your PC, you should just use FTP from a command prompt.

If you're trying to send a file from the mainframe with a scheduled batch job, you will need an FTP server running on that PC. Even so, your batch job should just invoke FTP.

If you really want to use REXX for this, you need to look into the SOCKET function call, but native FTP commands would be so much easier.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


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