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

S0C1 abend due to insufficient space in output file


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

New User


Joined: 17 Sep 2007
Posts: 68
Location: Kochi

PostPosted: Wed Oct 24, 2007 3:38 pm
Reply with quote

Hi,

I had coded a new program which reads the entire IMS database and writes out data in a specified format to the output file.

The database is too big, so i had given a counter in the program when it reads the parent segment and ran the code till the counter limit is reached. The counter limit was mas 10000 or so.

But on removing this counter and submitting the job till end-of -database my program abended with S0C1.

The error message is as below.
"IGD17206I VOLUME SELECTION HAS FAILED - THERE ARE NOT ENOUGH VOLUMES WITH SUFFICIENT SPACE FOR DATA SET".

Following is the space parameters thati had specified.
DSQGX002 DD DSN=<output dataset name>,
DISP=(NEW,CATLG,DELETE),
DCB=(LRECL=500,BLKSIZE=0,RECFM=FB),
DATACLAS=STANDARD,
UNIT=SYSDA

Can you please let me know if changing the DATACLAS to LARGE will help in solving the abend?

Thanks,
Rosmi.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Wed Oct 24, 2007 3:47 pm
Reply with quote

Joseph,

Reason for S0C1:

Quote:
An attempt was made to execute an invalid machine
instruction operation code. The operation code is either
invalid or is for an instruction that is not available on
this CPU.


Verify your pgm logic/flow.
Back to top
View user's profile Send private message
rosmi joseph

New User


Joined: 17 Sep 2007
Posts: 68
Location: Kochi

PostPosted: Wed Oct 24, 2007 4:04 pm
Reply with quote

Hi,

I did get this reason for the standard S0C1 abend.
But my code was working fine for some 10000 occurences of the database parent segment. The only difference now is the didnt get a counter but calls the para till end of database.

So, dont think it is the logic problem.
Do correct me if i am wrong.

Thanks,
Rosmi.
Back to top
View user's profile Send private message
ramfrom84

New User


Joined: 23 Aug 2006
Posts: 93
Location: chennai

PostPosted: Wed Oct 24, 2007 5:08 pm
Reply with quote

Hi,
One of method to copy large file,
Create the PS with maximum allocation and use it as DISP=SHR.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Oct 24, 2007 6:04 pm
Reply with quote

If You posted the jes job log of the run, or the sequence of messages then
the problem determination would be much easier

as far as the data class ,
we do not know anything about Your SMS setup and/or Your ACS routines,
any reply migh be wrong,
as usually asking on the forum about parameters specific to
Your environment will only generate a lot of useless traffic

the only people able to answer
Quote:
Can you please let me know if changing the DATACLAS to LARGE will help in solving the abend?

are the people from your storage support group

also from my experience if the abend is due to space problems
sorry... then there is a logic flaw in Your program ( unhandled conditions )
Back to top
View user's profile Send private message
expat

Global Moderator


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

PostPosted: Sat Oct 27, 2007 12:59 pm
Reply with quote

Quote:
"IGD17206I VOLUME SELECTION HAS FAILED - THERE ARE NOT ENOUGH VOLUMES WITH SUFFICIENT SPACE FOR DATA SET".


Go see your storage people. Or consider using tape as the output medium.
Back to top
View user's profile Send private message
rosmi joseph

New User


Joined: 17 Sep 2007
Posts: 68
Location: Kochi

PostPosted: Mon Oct 29, 2007 11:02 am
Reply with quote

Hi all,

Thanks a lot for all your inputs.

Finally my issue got solved. It was a logical flow in the program.
For IMS calls i have a key with X(02). I was issuing Get-unique calls and there was a point where the DB had the max key value ie '99'.

For each call i incremented the key , ie. from 00 to 99. Once it reached 99 it again became 00 and as the call was Get-unique it went on searching the DB and thus the program was executing in a loop. Once i changed the call to Get-Next the program ran fine...

Thanks,
Rosmi.
Back to top
View user's profile Send private message
murmohk1

Senior Member


Joined: 29 Jun 2006
Posts: 1436
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 11:09 am
Reply with quote

Rosmi,

Quote:
Finally my issue got solved

Nice to hear.
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 Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts TRIM everything from input, output co... DFSORT/ICETOOL 1
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top