View previous topic :: View next topic
|
Author |
Message |
seman18
New User
Joined: 08 Feb 2009 Posts: 67 Location: hz
|
|
|
|
I just have some existing code on how to use FTPCLNT to ftp file to ftp server, however, I find it is ugly to use when it is need to ftp file to two ftp server, like this, is there elegant implementation? and could someone send me material on this util, since It is difficult to find it, thx!
//STEP01 EXEC FTPCLNT,
// PARM='xxxx (EXIT TRAN xxx',
// REGION=2048K
//SYSPRINT DD SYSOUT=*
//FTPCNTL DD DSN=xxxx.xxx($Ftp_control_card),DISP=SHR
//OUTPUT DD SYSOUT=*
ftp_control_card:
$user_name $passwd
PUT 'xx.xx.xx(0)' xxx
CLOSE
OPEN $ftp_server_name
USER $user_name
$passwd
PUT 'xx.xx.xx(0)' xxx
QUIT |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
You will have to live with that
the only alternative in order not to have to repeat the commands
is to use a distribution manager, with destination lists management |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Depending on what is being sent, you might consider sending the data as an attachment to an e-mail with multiple recipients. . . |
|
Back to top |
|
|
|