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

FTP y REXEC error


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

New User


Joined: 22 Sep 2005
Posts: 32

PostPosted: Fri Sep 23, 2005 6:09 pm
Reply with quote

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

Active User


Joined: 25 Aug 2005
Posts: 234

PostPosted: Fri Sep 23, 2005 8:44 pm
Reply with quote

Per the "z/OS V1R7.0 Comm Svr: IP User's Guide and Commands" manual

publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1B950/CCONTENTS?DT=20050708142126

Chapter 4.11 FTP return codes, which method of return-code exit checking are you using?
Back to top
View user's profile Send private message
angelalpe
Warnings : 1

New User


Joined: 22 Sep 2005
Posts: 32

PostPosted: Mon Sep 26, 2005 12:08 pm
Reply with quote

Thank you very much, Kevin.

I am going to consult the manual that you say to me
Back to top
View user's profile Send private message
angelalpe
Warnings : 1

New User


Joined: 22 Sep 2005
Posts: 32

PostPosted: Mon Sep 26, 2005 2:46 pm
Reply with quote

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
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top