Page 1 of 1

425 Failed to establish connection

PostPosted: Mon Oct 16, 2017 6:59 pm
by mehi1353
Hi all,

I want to send a sequential data set from Z/OS V1R12 to a FTP server on Linux.

My "FTP JCL" is here:

//GETVM EXEC PGM=FTP,
// PARM='-D 123.456.789.012 (EXIT'
//OUTPUT DD SYSOUT=T
//SYSPRINT DD SYSOUT=T
//INPUT DD *
SEGROUP
SEGROUP
CD TEST
LOCSITE CYL PRI=1 SEC=1 LRECL=1000 RECFM=FBA
ASCII
QUOTE PASV
PUT 'SE.SMF.NETSPDDL'
QUIT
 

But, JCL does not work and it returns error "425 Failed to establish connection".

What that means and how I can prevent the error?

The FTP server is up because I can put files on it via my windows pc.

Mehrdad

Edited by moderator:
- code tags
- lower case
- data sets not files
- periods (.) not exclamation marks (!)

Re: 425 Failed to establish connection

PostPosted: Mon Oct 16, 2017 7:29 pm
by Robert Sample
BUT,JCL DOES NOT WORK AND IT RETURNS ERROR "425 Failed to establish connection" !!!

WHAT THAT MEANS AND HOW I CAN PREVENT THE ERROR?

THE FTP SERVER IS UP BECAUSE I CAN PUT FILES ON IT VIA MY WINDOWS PC!
The error message means that FTP could not connect to the remote server -- precisely as it says. You prevent the error by finding out what the issue is and resolving it. And merely because the FTP server is up does NOT mean your job will connect to it -- there is a difference between a server running and being able to connect to that server.

Possible reasons for this error include (but by no means are limited to):
Invalid JCL -- the IBM manual has PARM='ip address followed by other parameters'; putting '-D ip address' as you did may not be valid
Invalid IP address
Invalid user name
Invalid user password
etc

Re: 425 Failed to establish connection

PostPosted: Mon Oct 16, 2017 9:34 pm
by Pedro
THE FTP SERVER IS UP BECAUSE I CAN PUT FILES ON IT VIA MY WINDOWS PC!


Rather than a batch job, I would try first to use the TSO FTP client in order to resolve connectivity issues. Only then, try to resolve the JCL issues.

Re: 425 Failed to establish connection

PostPosted: Mon Oct 16, 2017 9:48 pm
by steve-myers
This is not a JCL issue (except in the sense it is a PARM issue). It is an FTP issue. The contents of the PARM text is not JCL; it is an issue with the program that uses the parameter text.

Re: 425 Failed to establish connection

PostPosted: Tue Oct 17, 2017 12:26 am
by vasanthz
Lol why would you post the ip address, userid and password? That is funny AF :D
Ur in trouble, unless someone gets rid of the information soon.

Re: 425 Failed to establish connection

PostPosted: Tue Oct 17, 2017 12:50 am
by Robert Sample
172.16.0.0 - 172.31.255.255 is private, not public, so nothing was exposed. The user id and password, however, may be real.