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
 

 

S0C1 abend due to insufficient space in output file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: S0C1 abend due to insufficient space in output file
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: 1439
Location: Bangalore,India

PostPosted: Wed Oct 24, 2007 3:47 pm    Post subject:
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    Post subject:
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10277
Location: italy

PostPosted: Wed Oct 24, 2007 6:04 pm    Post subject: Reply to: S0C1 abend due to insufficient space in output fil
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: 8593
Location: Back in jolly old England

PostPosted: Sat Oct 27, 2007 12:59 pm    Post subject:
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    Post subject:
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: 1439
Location: Bangalore,India

PostPosted: Mon Oct 29, 2007 11:09 am    Post subject:
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    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 Split file based on comparsion to 2 f... Div Grad DFSORT/ICETOOL 3 Thu Jul 27, 2017 9:16 pm
No new posts Read two inputs and write into output... murali.andaluri DFSORT/ICETOOL 6 Wed Jul 26, 2017 7:35 pm
No new posts Extra character appears in file when ... Balu5491 All Other Mainframe Topics 1 Wed Jul 26, 2017 2:39 pm
No new posts SSH - known_hosts file configuration vasanthz All Other Mainframe Topics 2 Wed Jul 26, 2017 2:10 am
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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