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

Jobs getting abended with S0C1


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

New User


Joined: 19 Jul 2008
Posts: 11
Location: Mumbai

PostPosted: Wed Jul 23, 2008 11:32 am
Reply with quote

Hi,

We have 8 Mainframe Batch jobs where the same program(Ex:Prog1) is being used in all the Jobs. This program(Prog1) is calling another program(prog2).Similarly Program2 is calling another program(prog3).

In the above scenario program3(Prog3) is a cobol program which can be called from both batch and online jobs.

All the 8 jobs ran at a time and only one job is running successfully and the remaining jobs getting abended with S0C1 error.

Below is the Sysout details:E0712MLP is my third program(Prog3)

[color=red]The system detected an operation exception (System Completion Code=0C1).
From compile unit E8721MLP at entry point E8721MLP at compile unit offset
-21210160 at entry offset -21210160 at address 00000000.

. Possible Bad Branch: Statement: Offset: +00003D66
.<> LEAID ENTERED (LEVEL 10/15/2007 AT 09.21)
.<> LEAID PROCESSING COMPLETE. RC=0
[/color]


Can any one please help me out why we are getting this abend.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 23, 2008 11:35 am
Reply with quote

I would start here:

. Possible Bad Branch: Statement: Offset: +00003D66
Back to top
View user's profile Send private message
Nivas_mumbai

New User


Joined: 19 Jul 2008
Posts: 11
Location: Mumbai

PostPosted: Wed Jul 23, 2008 12:13 pm
Reply with quote

Hi Dick,

Could you give me more details about bad branch.How we can we resolve it.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 23, 2008 12:42 pm
Reply with quote

?? I have no idea what your code does.

Guessing................

since the same run unit is invoked in more that one job, I would start by analyzing the input.

Soc1 means you are trying to modify data at an address outside your pgms address space.
1. Branches to nowhere,
2. indexes (or subscripts) going beyond the max value,
3. poorly linked modules,
4. modules linked for dynamic yet the submodule is linkedited to be statically CALLed.
5. incorrect USING statements

since it works, i would not spend too much time on items 3 or 4. 1 can happen when 4 exists, or if you are using ALTER statements or assembler modules are involved.

5 is possibly not involved, but would not bet on it.

2 would be my best guess.

the above list is not complete, but is a starting point. IBM has very thick manuals that you can read that discuss abend handling.
Back to top
View user's profile Send private message
Nivas_mumbai

New User


Joined: 19 Jul 2008
Posts: 11
Location: Mumbai

PostPosted: Wed Jul 23, 2008 12:51 pm
Reply with quote

Hi dick,

Thank you very much for detail explanation.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 23, 2008 1:33 pm
Reply with quote

Quote:
2. indexes (or subscripts) going beyond the max value,


As a non programmer, but something somewhere in the back of my mind says that this is a S0C4 rather than a S0C1, or am I way off track here ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Wed Jul 23, 2008 1:45 pm
Reply with quote

expat,

probably not.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jul 23, 2008 7:58 pm
Reply with quote

Hello,

The 0c1 is an operation execption (rather than an addressing execption) - very often caused by trying to execute an op-code of x'00'.

Are these new programs? Did these program work at one time? If so, what was recently changed?

If program3 is to work both in batch and online, it needs special attention. . . There is recent discussion in the forum about code that will work in both environments.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Wed Jul 23, 2008 11:42 pm
Reply with quote

A clue may be all pgms trying to run at once. Perhaps only one job gets a common file allocated and the others get a bad RC from OPEN but try to WRITE anyway?
Back to top
View user's profile Send private message
Nivas_mumbai

New User


Joined: 19 Jul 2008
Posts: 11
Location: Mumbai

PostPosted: Thu Jul 24, 2008 2:06 pm
Reply with quote

Hi Dick,

Prog3 works both in Batch and online.Lot of other applications are using these module.First time we included this module in our batch process.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Jul 24, 2008 8:30 pm
Reply with quote

Hello,

Quote:
Lot of other applications are using these module.First time we included this module in our batch process.

If this is the first time this module has been called in batch and has previously always been called online, it would appear that the module is not batch-compliant.

If i misunderstand, please clarify.
Back to top
View user's profile Send private message
Nivas_mumbai

New User


Joined: 19 Jul 2008
Posts: 11
Location: Mumbai

PostPosted: Fri Jul 25, 2008 9:13 am
Reply with quote

Hi Dick,

In our application only we included this program first time.Lot of other applications are using this module for long time.Infact this module is compliant to both online and batch process.

If it is not compliant to batch process,then how few of our jobs running with out any problem.

In our appliation alone we included this module in 19 jobs.All the jobs run at the same time.First 11 jobs running successfully.Remaining 8 jobs abended with S0C1.

One more interesting fact is after the abend we are simply check out the Calling program into a changeman package and did recompile.Then we are running job by giving this Load module,then these jobs running successfully.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 25, 2008 10:24 am
Reply with quote

Nivas_mumbai wrote:
One more interesting fact is after the abend we are simply check out the Calling program into a changeman package and did recompile.Then we are running job by giving this Load module,then these jobs running successfully.
When You do this, then is it running successfully in "Test region" or in production ? Were the same files used when executed after recompilation ?
Back to top
View user's profile Send private message
Nivas_mumbai

New User


Joined: 19 Jul 2008
Posts: 11
Location: Mumbai

PostPosted: Fri Jul 25, 2008 10:32 am
Reply with quote

Hi Anuj,

We are running it in production only.All the jobs are using the same files.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Jul 25, 2008 1:00 pm
Reply with quote

If so, then with the information so far in hand, I would go with Bill's susggesion..
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Jul 25, 2008 7:37 pm
Reply with quote

Hello,

It sounds like the original promote to production did not link all of the modules correctly. Your checkout/re-compile has probably corrected the "corrupt" load module.
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 List of quiesced jobs JCL & VSAM 3
No new posts Negative dependency between jobs in m... COBOL Programming 12
No new posts How to submit multiple jobs with parm... JCL & VSAM 3
No new posts List of Active Jobs in CTRL-M JCL & VSAM 1
No new posts An write operation error - ABENDED S0... COBOL Programming 3
Search our Forums:

Back to Top