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: