IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Sending file to Host through REXX


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Wed Mar 01, 2006 6:56 pm
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
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

Global Moderator


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

PostPosted: Wed Mar 01, 2006 7:29 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top