Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to use FTP in the REXX in online mode

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

New User


Joined: 27 Feb 2007
Posts: 8
Location: New delhi

PostPosted: Fri Jul 06, 2007 4:54 pm    Post subject: How to use FTP in the REXX in online mode
Reply with quote

Hi!

I have an requirement in which i have to transfer the file to the particular server location using the FTP program. I have the FTP JCL too. But, i do not know how i can use these job's instruction in the REXX program. Actually, i do not want to submit a batch job to transfer the file but, i want to do it in online mode.

Below mentioned the job step which does the transfer of file to the server
//STEP010 EXEC PGM=IBMFTP
//**********************************************************************
//***** *****
//***** PROGRAM: IBMFTP *****
//***** *****
//***** TITLE : UPLOAD TESTED DATA *****
//***** *****
//**********************************************************************
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
120.20.200.345 (EXIT
A401556
SAD
PUT 'FBSIT.A368465.NVS.INDIC.JUN05' NVS_IND_2007070606:13:51.TXT
QUIT
/*
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Fri Jul 06, 2007 6:43 pm    Post subject:
Reply with quote

Why do you not want to submit a batch job ?

If you run the FTP from your TSO terminal then you will lock it out for the duration, so that means you sit there unable to do anything else whilst the FTP is processing.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jul 06, 2007 8:28 pm    Post subject:
Reply with quote

Hello,

What reason is there to tie up online resources for the duration of the ftp? Not only will you impact yourself, but very possibly others.

Is there a business reason to run this online or is just something you want?
Back to top
View user's profile Send private message
Devzee

Active Member


Joined: 20 Jan 2007
Posts: 684
Location: Hollywood

PostPosted: Sat Jul 07, 2007 4:21 am    Post subject:
Reply with quote

why do you want to write new REXX to do this.

Use TSO FTP command if this works in your site.
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us