Use of EXIT parameter.

This Forum is for the guests or the users who are not registered on this board. This part allows guests to post in.
FTPEXIT

Use of EXIT parameter.

Post 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.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Use of EXIT parameter.

Post 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.
FTPEXIT

Re: Use of EXIT parameter.

Post by FTPEXIT »

Thank you.

Where can I learn more about these kind of interpretation on return codes, please suggest.
User avatar
Robert Sample
Global Moderator
Global Moderator
Posts: 1885
Joined: Fri Jun 28, 2013 1:22 am
Location: Dubuque Iowa
United States of America

Re: Use of EXIT parameter.

Post 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.
Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “You are a Guest.”