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

Need a elegant ftp implementation using FTPCLNT util


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
seman18

New User


Joined: 08 Feb 2009
Posts: 67
Location: hz

PostPosted: Fri Mar 06, 2009 3:10 pm
Reply with quote

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
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Mar 06, 2009 4:21 pm
Reply with quote

Quote:
I find it is ugly


You will have to live with that icon_biggrin.gif

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Fri Mar 06, 2009 8:59 pm
Reply with quote

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
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts RACF passphrase implementation problems All Other Mainframe Topics 1
No new posts Need to compare 2 VSAM file through f... JCL & VSAM 8
No new posts If-Then based implementation using DF... DFSORT/ICETOOL 11
No new posts DB2 - Load replace by the Job using P... DB2 1
No new posts DFSORT IMPLEMENTATION WITH THE HELP O... DFSORT/ICETOOL 3
Search our Forums:

Back to Top