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

SC03 abend when access VSAM files


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
raviprabhu

New User


Joined: 20 Oct 2006
Posts: 29

PostPosted: Wed Feb 26, 2014 9:48 pm
Reply with quote

Hi I am getting SC03 abend.
I have written a new program wherein I call a module (I think ASM pgm which does reading of VSAM file - this is master module)
my logic works properly and gives required results but the job gets MAXCC = 12 after the job is complete.
I access VSAM files in new program

Please help me
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 Feb 26, 2014 10:25 pm
Reply with quote

Hello,

You ned to provide something for us to use to help you . . .

Where do you see a "MAXCC = 12"? What other diagnostic info is generated?
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Wed Feb 26, 2014 10:26 pm
Reply with quote

Here's some of what I found -

1. A data set could not be closed by the control program, because the DCB had been erroneously modified. ISAM file -Bad block size.

2. A task tried to end normally by issuing a RETURN macro or by branching to the return address in register 14. The task was not ready to end processing because the task had opened one or more data sets that had not been closed.

3. A SC03 indicates that a data set is open and cannot be closed

Do you pass the characteristics of the target VSAM file to this Assembler program?

Look through other source code in your shop and find an example to use as a template.

HTH....
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3053
Location: NYC,USA

PostPosted: Thu Feb 27, 2014 4:10 am
Reply with quote

As mentioned by Bill, those are the reasons for this abend.

Also, I suggest you to double check your new program to ensure there are no explicit abends are made by you for the sake of testing purpose. Hence as Dick said please share the job log to know more about what went wrong.
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 2
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top