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
 

 

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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts Execute TSO ACF commands from COBOL-I... supreethi.srid TSO/ISPF 0 Tue Feb 21, 2017 5:19 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm


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