Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Jobs getting abended with S0C1

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    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

dbzTHEdinosauer

Global Moderator


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

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

Global Moderator


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

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: 8593
Location: Back in jolly old England

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

Global Moderator


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

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

Site Director


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

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

Active Member


Joined: 17 Aug 2007
Posts: 562
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

Site Director


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

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 Dhawan

Senior Member


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

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 Dhawan

Senior Member


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

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
dick scherrer

Site Director


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

PostPosted: Fri Jul 25, 2008 7:37 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts Don't allow CICS to submit batch jobs prino JCL & VSAM 5 Mon Jul 25, 2016 3:26 pm
No new posts Predicting jobs which are about to re... kpanchabhai85 DFSORT/ICETOOL 4 Thu Jun 30, 2016 7:51 pm
No new posts How to find jobs that are in schedule... anilkumar922 All Other Mainframe Topics 5 Tue Jun 28, 2016 10:01 am
This topic is locked: you cannot edit posts or make replies. Jobs At HCL Technologies - Weekend Dr... mjadwani2785 Mainframe Jobs 0 Thu Feb 18, 2016 8:31 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us