Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Jobs getting abended with S0C1
Goto page 1, 2  Next
 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL
Author Message
Nivas_mumbai

New User


Joined: 19 Jul 2008
Posts: 11
Location: Mumbai

PostPosted: Wed Jul 23, 2008 11:32 am    Post subject: Jobs getting abended with S0C1
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
References
dbzTHEdinosauer

Senior Member


Joined: 20 Oct 2006
Posts: 1633
Location: germany

PostPosted: Wed Jul 23, 2008 11:35 am    Post subject:
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    Post subject: Reply to: Jobs getting abended with S0C1
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

Senior Member


Joined: 20 Oct 2006
Posts: 1633
Location: germany

PostPosted: Wed Jul 23, 2008 12:42 pm    Post subject:
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    Post subject: Reply to: Jobs getting abended with S0C1
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: 3542
Location: Brussels once more ...

PostPosted: Wed Jul 23, 2008 1:33 pm    Post subject: Non programmers question
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

Senior Member


Joined: 20 Oct 2006
Posts: 1633
Location: germany

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

expat,

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

Global Moderator


Joined: 23 Nov 2006
Posts: 8724
Location: 221 B Baker St

PostPosted: Wed Jul 23, 2008 7:58 pm    Post subject:
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

Senior Member


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

PostPosted: Wed Jul 23, 2008 11:42 pm    Post subject:
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    Post subject: Reply to: Jobs getting abended with S0C1
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

Global Moderator


Joined: 23 Nov 2006
Posts: 8724
Location: 221 B Baker St

PostPosted: Thu Jul 24, 2008 8:30 pm    Post subject:
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    Post subject: Reply to: Jobs getting abended with S0C1
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 D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2219
Location: Phoenix, AZ

PostPosted: Fri Jul 25, 2008 10:24 am    Post subject: Re: Reply to: Jobs getting abended with S0C1
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    Post subject: Reply to: Jobs getting abended with S0C1
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 D.

Global Moderator


Joined: 22 Apr 2006
Posts: 2219
Location: Phoenix, AZ

PostPosted: Fri Jul 25, 2008 1:00 pm    Post subject:
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
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL All times are GMT + 6 HoursGoto page 1, 2  Next
Page 1 of 2