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

How to use FTP in the REXX in online mode


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
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
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: 8797
Location: Welsh Wales

PostPosted: Fri Jul 06, 2007 6:43 pm
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

Moderator Emeritus


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

PostPosted: Fri Jul 06, 2007 8:28 pm
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts HILITE on Browse mode? TSO/ISPF 2
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top