Reasons for failure of dynamic allocation.

High Level Assembler(HLASM) for MVS & VM & VSE

Reasons for failure of dynamic allocation.

Postby vinodj » Thu Jan 05, 2012 4:24 pm


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.

Posts: 29
Joined: Wed Nov 23, 2011 6:16 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Reasons for failure of dynamic allocation.

Postby BillyBoyo » Thu Jan 05, 2012 5:05 pm

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.
Global moderator
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Reasons for failure of dynamic allocation.

Postby Robert Sample » Thu Jan 05, 2012 5:49 pm

Find the Assembler Services Guide manual ( 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.
Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

Re: Reasons for failure of dynamic allocation.

Postby steve-myers » Thu Jan 05, 2012 6:25 pm

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.
Global moderator
Posts: 2105
Joined: Thu Jun 03, 2010 6:21 pm
Has thanked: 4 times
Been thanked: 243 times

Return to Assembler