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
 

 

FTP the file from Server to Mainframe

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

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Tue Jan 20, 2009 5:40 pm    Post subject: FTP the file from Server to Mainframe
Reply with quote

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
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue Jan 20, 2009 6:05 pm    Post subject: Reply to: FTP the file from Server to Mainframe
Reply with quote

Yes, of course. It would essentially be setup just like a batch job FTP process.
Back to top
View user's profile Send private message
Raghuraman_New

New User


Joined: 03 Oct 2008
Posts: 43
Location: Chennai,India.

PostPosted: Tue Jan 20, 2009 7:14 pm    Post subject:
Reply with quote

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
View user's profile Send private message
PeD

Active User


Joined: 26 Nov 2005
Posts: 456
Location: Belgium

PostPosted: Tue Jan 20, 2009 7:25 pm    Post subject:
Reply with quote

Why ?
Quote:
without submitting any Batch Job

Too visible?
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: Tue Jan 20, 2009 7:30 pm    Post subject: Reply to: FTP the file from Server to Mainframe
Reply with quote

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
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 SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


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