Page 1 of 1

Use of EXIT parameter.

Posted: Thu Apr 30, 2015 4:57 pm
by FTPEXIT
Hi,

Code: Select all

//FTP     EXEC PGM=FTP,REGION=1000K, 
//             PARM='( EXIT' 
//SYSPRINT DD  SYSOUT=$ 
//OUTPUT   DD  SYSOUT=$ 
//INPUT    DD  * 
.
.
.
What does the EXIT do in here? Can you guide.

Re: Use of EXIT parameter.

Posted: Thu Apr 30, 2015 6:16 pm
by Robert Sample
EXIT actually does two things:
1. it displays certain error codes that occur in FTP
2. It passes the FTP error code back to the system as the step condition code. One big caveat on this: since the step condition code is a value from 0 to 4095, what you will see as the step condition code is the FTP error code MOD 4096. So a 27550 FTP error code (27 means a PUT subcommand was issued; 550 means file unavailable or could not be written) becomes a 2974 step condition code.

Re: Use of EXIT parameter.

Posted: Sun May 17, 2015 1:16 pm
by FTPEXIT
Thank you.

Where can I learn more about these kind of interpretation on return codes, please suggest.

Re: Use of EXIT parameter.

Posted: Sun May 17, 2015 10:45 pm
by Robert Sample
Find the Communications Server bookshelf for your version of z/OS. Look in the IP User's Guide and Commands manual at the chapter on FTP return codes.