View previous topic :: View next topic
|
Author |
Message |
airan002
New User
Joined: 27 Feb 2007 Posts: 8 Location: New delhi
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
Devzee
Active Member
Joined: 20 Jan 2007 Posts: 684 Location: Hollywood
|
|
|
|
why do you want to write new REXX to do this.
Use TSO FTP command if this works in your site. |
|
Back to top |
|
|
|