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

SOC4 abend: VOLUME SELECTION FAILED FOR INSUFFICIENT SPACE


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

New User


Joined: 21 Jul 2008
Posts: 19
Location: Mumbai

PostPosted: Fri Mar 27, 2009 6:33 pm
Reply with quote

This is my JCL step :
Code:
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
//            DISP=SHR

my file is of record length 31

If I am declaring in the above way i am getting SOC4 abend

If i am declaring in the below way it is throwing JCL error as
Code:
VOLUME SELECTION HAS FAILED FOR INSUFFICIENT SPACE FOR 
DATA SET PMSR1.AS.TEST.TEMP.F01
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
//            DISP=SHR
//           DISP=(,CATLG,DELETE),
//          DCB=(LRECL=31,RECFM=FB,BLKSIZE=0),
//           UNIT=SYSDA,SPACE=(CYL,(100,10),RLSE)


Please help me in solving the issue
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 27, 2009 6:47 pm
Reply with quote

What language are you using?
What is the precise error message -- copy using BBCode from the job?
Post the messages around the error message as well.
I do not understand the relevance of the JCL error -- the first way you're saying the file already exists, the second way you're allocating a brand new, not existing file. So why show us both of these? They're not both relevant and neither one may have any relationship to your S0C4 (then again, they could -- you didn't give enough information to know for sure).
Back to top
View user's profile Send private message
swathiravichandran

New User


Joined: 21 Jul 2008
Posts: 19
Location: Mumbai

PostPosted: Fri Mar 27, 2009 6:53 pm
Reply with quote

I am using Assembler language..
while trying to create a new file it is throwing me jcl error,as error space
if i have allocated by using 3.2 utility, file is of same length it is throwing me SOC4 error.
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Fri Mar 27, 2009 6:55 pm
Reply with quote

It is not at all clear what your problem really is here.

I have never seen a S0C4 been caused by lack of space before. But for your file allocation, you are trying to allocate more space than is available so you need either to reduce your allocation, or talk to the storage people and tell them there is a problem with availability.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 27, 2009 7:26 pm
Reply with quote

As I said earlier, post some actual data from your job ... what you are telling us doesn't make sense in the context of the error.
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Fri Mar 27, 2009 7:34 pm
Reply with quote

What is this suppose to be "&KPXOAN.DSN="?
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 27, 2009 7:49 pm
Reply with quote

swathiravichandran wrote:
If i am declaring in the below way it is throwing JCL error as
Code:
VOLUME SELECTION HAS FAILED FOR INSUFFICIENT SPACE FOR 
DATA SET PMSR1.AS.TEST.TEMP.F01
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
//            DISP=SHR
//           DISP=(,CATLG,DELETE),
//          DCB=(LRECL=31,RECFM=FB,BLKSIZE=0),
//           UNIT=SYSDA,SPACE=(CYL,(100,10),RLSE)
Why no comma after the "// DISP=SHR"?
Or should it be commented out?
Back to top
View user's profile Send private message
swathiravichandran

New User


Joined: 21 Jul 2008
Posts: 19
Location: Mumbai

PostPosted: Fri Mar 27, 2009 7:53 pm
Reply with quote

This JCL error is solved,because the space I specified is more.
But now my program is giving SOC4 while reading my input file which is VSAM file.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Mar 27, 2009 8:01 pm
Reply with quote

swathiravichandran wrote:
But now my program is giving SOC4 while reading my input file which is VSAM file.

CICS Guy wrote:
Is the file actually open? Can you prove it?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Mar 27, 2009 8:04 pm
Reply with quote

What does your assembler code look like for accessing the VSAM file?
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Sat Mar 28, 2009 1:27 am
Reply with quote

swathiravichandran wrote:
Code:
//KEYPAIRS DD &KPXOAN.DSN=PMSR1.AS.TEST.TEMP.F01,
//            DISP=SHR
//           DISP=(,CATLG,DELETE),
Two DISPositions for a single DSN and still you say
Quote:
This JCL error is solved
. . . icon_confused.gif
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 Replace each space in cobol string wi... COBOL Programming 3
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts DFHPI1008 JSON generation failed COBOL Programming 0
No new posts Insufficient Storage ABENDS & Debugging 7
No new posts Volume chain using DFSORT DFSORT/ICETOOL 17
Search our Forums:

Back to Top