View previous topic :: View next topic
|
Author |
Message |
angelalpe Warnings : 1 New User
Joined: 22 Sep 2005 Posts: 32
|
|
|
|
Hello,
When I execute a FTP and a REXEC (remote exec), there are times that the execution does not finalize correctly and an error message appears but the return code is zero (RC=0). I
I believe that it would have to give back return code different from zero since in fact an error has taken place. exists some way so that the execution of this case gives back return code different from zero?
Two examples of these errors are the following ones:
Case 1: FTP
I execute a FTP to send a file of host to a servant and it gives the following error me because the directory of the servant does not exist. The error is correct because the directory really does not exist. What it does not seem to me correct is that the execution of this FTP gives back return code equal to 0. The error message is the following one:
EZA1450I IBM FTP CS V1R2
530 User FTP_USER cannot log in, home directory inaccessible.
Case 2: REXEC (remote exec)
This case is similar to the previous one. I execute REXEC (remote exec) and it removes the following message to me from error but return code is equal to zero. The error message is the following one:
EZA4801I MVS TCP/IP REXEC CS V1R2
Winsock REXECD/NT: Error 5 executing '\\SERVER01\FILE2.BAT'
Access is denied.
Thank you |
|
Back to top |
|
|
Kevin
Active User
Joined: 25 Aug 2005 Posts: 234
|
|
Back to top |
|
|
angelalpe Warnings : 1 New User
Joined: 22 Sep 2005 Posts: 32
|
|
|
|
Thank you very much, Kevin.
I am going to consult the manual that you say to me |
|
Back to top |
|
|
angelalpe Warnings : 1 New User
Joined: 22 Sep 2005 Posts: 32
|
|
|
|
For the FTP I have found parametro EXIT. To see the following example:
//FTPLOG EXEC PGM=FTP, PARM='nameserver (EXIT=12'
if some error in the execution of the FTP takes place, teh return code is 12
For the REXEC, I have not found it. |
|
Back to top |
|
|
|