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 to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm


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