Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search 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
Author Message
antonrino.b

Active User


Joined: 10 Jan 2006
Posts: 74
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
References
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 3318
Location: Charlotte,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

Active User


Joined: 10 Jan 2006
Posts: 74
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: 3318
Location: Charlotte,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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1