Job abends



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Job abends

Postby ashwin1990 » Mon May 07, 2012 3:26 pm

i have a job consisting of 2 steps. The first step is meant to repro contents of one file to another file. The second step is meant to sort the ouput file of the previous step. Now when i execute the job, my 1st step has a return code of 0 and 2nd step has a return code of 12.

My question is whether the contents would be successfully reproed as the return code was 0 for the 1st step(irrespective of the return code of the 2nd step)
ashwin1990
 
Posts: 32
Joined: Mon Feb 27, 2012 4:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Job abends

Postby BillyBoyo » Mon May 07, 2012 3:34 pm

Yes. Everything you see as output from your first step has been done successfully.

Your job did not abend. That is a different thing to obtaining a non-zero return code.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Job abends

Postby ashwin1990 » Mon May 07, 2012 3:48 pm

My job has a MACC =12. Still the contents are reproed?????
ashwin1990
 
Posts: 32
Joined: Mon Feb 27, 2012 4:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Job abends

Postby BillyBoyo » Mon May 07, 2012 3:54 pm

If you don't believe be, look at the SYSOUT from the IDCAMS step. If that tells you the file is copied, the file is copied, no matter what else happens to the job.

If you think the file is not copied, post the JCL for the step, and the Sysout from the step, in the Code tags please.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Job abends

Postby ashwin1990 » Mon May 07, 2012 4:03 pm

ok............ thnks for ur help..:)
ashwin1990
 
Posts: 32
Joined: Mon Feb 27, 2012 4:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Job abends

Postby dick scherrer » Mon May 07, 2012 10:01 pm

Hello,

First you mention a return code 12, then later mention a MAXCC=12. Which is it?

Suggest you post the first 3 sysout datasets (using the "Code" tag for readability).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Job abends

Postby ashwin1990 » Wed May 09, 2012 12:26 pm

Its a MAXCC = 12
ashwin1990
 
Posts: 32
Joined: Mon Feb 27, 2012 4:44 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Job abends

Postby NicC » Wed May 09, 2012 6:26 pm

Are you sure the idcams step gives a return code of 0? And the sort step gives a return code of 12? Please show - using the code tags.
The problem I have is that people can explain things quickly but I can only comprehend slowly.
Regards
Nic
NicC
Global moderator
 
Posts: 3025
Joined: Sun Jul 04, 2010 12:13 am
Location: Pushing up the daisies (almost)
Has thanked: 4 times
Been thanked: 136 times

Re: Job abends

Postby Ed Goodman » Wed May 09, 2012 6:34 pm

I don't want to assume that the first step is correct by itself, so I'm going to say: "The return code of the second step will not affect the processing of the first step."

IF (<- Capital letters) your first step worked correctly, and IF you have a proper output file defined, either pre-allocated or allocated in the JCL, and it gets kept/cataloged in the first step, AND the second step doesn't delete it...

As I was typing it I realized the futility of trying to encompass all the possibilities. Do this - run the first step alone and make sure it's doing what you want. That will answer most of the questions.
Ed Goodman
 
Posts: 341
Joined: Thu Feb 24, 2011 12:05 am
Has thanked: 3 times
Been thanked: 17 times


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post