Page 1 of 1

Reasons for failure of dynamic allocation.

PostPosted: Thu Jan 05, 2012 4:24 pm
by vinodj
Hello,

I want to know what can be the reasons for dynamic allocation routine to fail trying to allocate a dataset on mainframe. Following are some of them I have come up with.

1. Dataset to be allocated already exists.
2. Insufficient space on destination system.

Could there be any other reasons than these.

Regards,
Vinod

Re: Reasons for failure of dynamic allocation.

PostPosted: Thu Jan 05, 2012 5:05 pm
by BillyBoyo
I'm not going to think too hard about this, because I'm not sure of your purpose. Security. Syntax. Hardware errors. Storage policy. Site-implemented standards. System-software error. Apllication-software error. Sudden change of wind direction.

Re: Reasons for failure of dynamic allocation.

PostPosted: Thu Jan 05, 2012 5:49 pm
by Robert Sample
Find the Assembler Services Guide manual (http://www.ibm.com if nowhere else) and read chapter 26.3.2 which is titled Interpreting Error Reason Codes from DYNALLOC. You will find several dozen reason codes listed -- such as the first one, insufficient virtual storage, which is not on your list.

Re: Reasons for failure of dynamic allocation.

PostPosted: Thu Jan 05, 2012 6:25 pm
by steve-myers
Actually, the title is "MVS Programming Authorized Assembler Services Guide." Every once in a while, it can get S0C4 failures due to errors in your parameter list.