Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
SOC4 abend: VOLUME SELECTION FAILED FOR INSUFFICIENT SPACE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: SOC4 abend: VOLUME SELECTION FAILED FOR INSUFFICIENT SPACE
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Fri Mar 27, 2009 6:47 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Mar 27, 2009 6:55 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Fri Mar 27, 2009 7:26 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Fri Mar 27, 2009 7:49 pm    Post subject: Re: SOC4 abend: VOLUME SELECTION FAILED FOR INSUFFICIENT SPA
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Fri Mar 27, 2009 8:01 pm    Post subject:
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: 8165
Location: East Dubuque, Illinois, USA

PostPosted: Fri Mar 27, 2009 8:04 pm    Post subject:
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

Senior Member


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

PostPosted: Sat Mar 28, 2009 1:27 am    Post subject: Re: SOC4 abend: VOLUME SELECTION FAILED FOR INSUFFICIENT SPA
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    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 ASP3 ABEND IN CICS Vedant CICS 0 Fri Oct 20, 2017 3:18 pm
No new posts The TS7720 is out of cache space. Rex Montemayor All Other Mainframe Topics 2 Mon Sep 25, 2017 7:18 am
No new posts Iterative use of a REXX script causin... bryonyh CLIST & REXX 4 Fri Jul 28, 2017 12:52 pm
No new posts C03 ABEND sjiraga PL/I & Assembler 1 Thu Jun 01, 2017 4:51 pm
No new posts RMM: scratching a volume that RMM thi... Hervey Martinez IBM Tools 0 Mon May 15, 2017 8:51 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us