MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

FTP abend

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
realbluguy
Beginner


Joined: 19 Aug 2005
Posts: 3
Topics: 1

PostPosted: Fri Aug 19, 2005 9:48 am    Post subject: FTP abend Reply with quote

I run a FTP step and it gives a non zero return code. Part of the FTP log is below

00 PORT command successful.
ZA1701I >>> NLST F*
50 F*: No such file or directory.
ZA1735I FTP Return Code = 20550, Error Code = 00000 ZA1701I >>> QUIT 21-You have transferred 0 bytes in 0 files.



The JCL then translates this return code to give a completion code of 0070

IEF142I M107BW1J S120 - STEP WAS EXECUTED - COND CODE 0070

Just wondering on how this 0070 is arrived at. I need to discard the FTP return code20550 and carry on processing but I am afraid If I code
for COND CODE 0070 I might miss legitimate errors.

Any help ?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Fri Aug 19, 2005 10:10 am    Post subject: Reply with quote

realbluguy,

Check this link for a detailed explanation of the error message EZA1735I

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/F1A1C721/SPTJM00209

Here is an explanation of IEF142I

Code:

IEF142I jobname "procstep" stepname STEP WAS EXECUTED - COND CODE cde     
                                                                         
Explanation:  A step completed processing. The system issues this message
to give the condition code from the step. In the message text:           
                                                                         
jobname   The name of the job.                                           
                                                                         
procstep  The name of the step in the procedure. For started tasks,       
          procstep will not appear.                                       
                                                                         
stepname  The name of the job step. For started tasks, stepname will be   
          one of the following:                                           
                                                                         
          o   The identifier, if one was specified on the START command   
                                                                         
          o   The device number, if the MOUNT or START command specified a
              device number or if the JCL for the started task included an
              IEFRDER DD statement. Note that the device number can have 
              up to 4 digits and can be prefixed by a slash (/), for     
              example, '/46FF'.                                           
                                                                         
          o   The same as jobname, in all other cases                     
                                                                         
cde       The condition code from the contents of general purpose register
          15 at the end of the step. If the last task of the step did not 
          set a completion code in register 15, the cde in the message is 
          meaningless. In the event of multiple failures in the same job   
          step, the contents of register 15 refer only to the last         
          failure.                                                         
                                                                           
          Note:  The condition code of the step is never altered by the   
                 operating system, whether as a result of a job failing   
                 due to a disposition error, or for any other reason. The 
                 condition code in this message will be whatever condition
                 code was issued by the step, regardless of whether the   
                 job fails due to a disposition error.                     
                                                                           
System Action:  The system continues to process further steps of the job   
if allowed by the COND parameter of subsequent EXEC statements, and in the
case of a disposition error, the system is not prevented by the           
installation option to fail jobs.                                         
                                                                           
Source: Initiator/terminator                                               
                                                                           
Detecting Module:  IEFBB410                                               



Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
realbluguy
Beginner


Joined: 19 Aug 2005
Posts: 3
Topics: 1

PostPosted: Fri Aug 19, 2005 10:21 am    Post subject: Reply with quote

Kolusu,

The FTP code 20550 and hence EZA1735I are fine as they are a result of the LS command not returning any files or directories

What is bothering me is the following message for the step

IEF142I M107BW1J S120 - STEP WAS EXECUTED - COND CODE 0070


The IEF142I explanation you have given is very generic and doesnt mean much (atleast to me) on why 0070 is let out. (why is 70 in register 15 Rolling Eyes and what all cases 70 will be stored there) IS it safe to ignore this 0070 and carry on ?
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Aug 19, 2005 12:31 pm    Post subject: Reply with quote

What have you defined for the specific return-code for any eligible error?

For example, the job step:
Code:

//FTP  EXEC PGM=FTP,PARM='(EXIT=8'

will set the return-code from the FTP program to 8 for an error.
Back to top
View user's profile Send private message
realbluguy
Beginner


Joined: 19 Aug 2005
Posts: 3
Topics: 1

PostPosted: Mon Aug 22, 2005 8:26 am    Post subject: Reply with quote

Superk,

I haven't coded anything , its left simply as

//FTP EXEC PGM=FTP,PARM='(EXIT'

the JCL picks up a return code of 0070 (not sure how).


OK, let me rephrase the question a bit differently,

//S120 EXEC PGM=FTP,PARM='(EXIT'

when the above step is executed

I get a COND CODE of 0070

IEF142I M107BW1J S120 - STEP WAS EXECUTED - COND CODE 0070


I get a COMPLETION CODE of 550

**********
| COMP |
| CODE |
**********
| 0550 |
**********


Comp code seems fine (as the FTP returns 205550). IS there anyway I can use the COMP CODE in the JCL ? (instead of the cond code ?)
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Mon Aug 22, 2005 3:01 pm    Post subject: Reply with quote

You might want to take a look at chapter 4.11 in the "z/OS V1R6.0 CS: IP User's Guide and Commands":

http://publibfp.boulder.ibm.com/cgi-bin/bookmgr/BOOKS/f1a1b940/4.11?DT=20040701154444
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group