View previous topic :: View next topic
|
Author |
Message |
antonrino.b
New User
Joined: 10 Jan 2006 Posts: 76 Location: Germany
|
|
|
|
Hi,
Can anyone help me in sending a PS file or PDS member to Host through REXX?
Thanks
Antu |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
antonrino.b
New User
Joined: 10 Jan 2006 Posts: 76 Location: Germany
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
brgr88
New User
Joined: 05 Mar 2006 Posts: 6
|
|
|
|
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 |
|
|
|