View previous topic :: View next topic
|
Author |
Message |
Raghuraman_New
New User
Joined: 03 Oct 2008 Posts: 43 Location: Chennai,India.
|
|
|
|
Hi ,
I need to GET the data from a file present in an Server to Mainframe .I have the following details(known already!) about the Server ,
1) IP address of the Server
2) Username
3) Password
4) Path for the file
5) Data file-name ( Which is to be FTP'ed to Mainframe)
Is it possible in REXX to accomplish the above task without any user interface screen. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Yes, of course. It would essentially be setup just like a batch job FTP process. |
|
Back to top |
|
|
Raghuraman_New
New User
Joined: 03 Oct 2008 Posts: 43 Location: Chennai,India.
|
|
|
|
Hi ,
Thanks for your immediate reply.
I have done with the Batch Job(JCL) to GET the data file. But my concerns is to GET the file by running REXX in TSO alone without submitting any Batch Job.Can you provide me the REXX Code ? |
|
Back to top |
|
|
PeD
Active User
Joined: 26 Nov 2005 Posts: 459 Location: Belgium
|
|
|
|
Why ?
Quote: |
without submitting any Batch Job |
Too visible? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Code: |
/* REXX */
...
Queue "sendsite"
Queue "ascii"
Queue "get ..."
Queue "qui"
"FTP hostname/address port (Exit ##"
...
Exit 0
|
I'll leave any other details such as dataset allocations, etc. up to you. |
|
Back to top |
|
|
|