After z/OS 2.5 upgrade FREE STORAGE STGID error DC016005 STORAGE-ID *0000* OF STORAGE  TO BE FREED IS UNKNOWN
search cancel

After z/OS 2.5 upgrade FREE STORAGE STGID error DC016005 STORAGE-ID *0000* OF STORAGE  TO BE FREED IS UNKNOWN

book

Article ID: 264181

calendar_today

Updated On:

Products

IDMS IDMS - Database

Issue/Introduction

After upgrade to Z/OS 2.5 some of the COBOL application programs abended with:

DC016005 V57 T17 ACCEAE3A TASK:nnnnnnn PROG:nnnnnnn  STORAGE-ID *0000* OF STORAGE  TO BE FREED IS UNKNOWN

DC027007 V57 T17 TASK:nnnnnnn PROG:nnnnnnn ABENDED WITH CODE D002

The program is doing a:

FREE STORAGE STGID field_name

Environment

Release : 19.0

Resolution

The DC016005 message is issued because the address of the STGID field is x'00000000'. 

The  field_name in the STGID parameter must point to a field that contains the 4 character storage id. 

In this case there is a programming error in the program, the field_name is pointing to a LINKAGE SECTION field which was not initialized yet.

The problem occurs in z/OS 2.5 because the new version of z/OS Language Environment in z/OS 2.5 is making COBOL work differently. 

 

Additional Information

See documentation section FREE STORAGE (COBOL)