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
 

 

SC03 abend when access VSAM files

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: SC03 abend when access VSAM files
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

Site Director


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

PostPosted: Wed Feb 26, 2014 10:25 pm    Post subject:
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Wed Feb 26, 2014 10:26 pm    Post subject: Reply to: SC03 abend
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

Senior Member


Joined: 21 Sep 2010
Posts: 1651
Location: NY,USA

PostPosted: Thu Feb 27, 2014 4:10 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm


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