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
 

 

Need a elegant ftp implementation using FTPCLNT util

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Need a elegant ftp implementation using FTPCLNT util
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10210
Location: italy

PostPosted: Fri Mar 06, 2009 4:21 pm    Post subject: Reply to: Need a elegant ftp implementation using FTPCLNT ut
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

Site Director


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

PostPosted: Fri Mar 06, 2009 8:59 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Need to compare 2 VSAM file through f... sandeep kumar302 JCL & VSAM 8 Wed Apr 09, 2014 2:50 pm
No new posts If-Then based implementation using DF... techslam DFSORT/ICETOOL 11 Mon Dec 05, 2011 1:21 pm
No new posts DB2 - Load replace by the Job using P... Mithun MF DB2 1 Sat Oct 08, 2011 12:09 am
No new posts DFSORT IMPLEMENTATION WITH THE HELP O... sarthak DFSORT/ICETOOL 3 Tue Sep 28, 2010 1:47 pm
No new posts Timeouts excessive as solutions in th... Mercedes Muñoz DB2 1 Wed Jun 03, 2009 2:11 am


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