SQLCODE -904 REASON 00D70008 in DBRM PPA@EXE1 running an Explain in Plan Analyzer
search cancel

SQLCODE -904 REASON 00D70008 in DBRM PPA@EXE1 running an Explain in Plan Analyzer

book

Article ID: 8876

calendar_today

Updated On:

Products

Plan Analyzer for DB2 for z/OS

Issue/Introduction

Running a Plan Analyzer for Db2 for z/OS (PPA) Explain which returned a bad SQLCODE:
 
DSNT408I SQLCODE = -904, ERROR: UNSUCCESSFUL EXECUTION CAUSED BY AN
UNAVAILABLE RESOURCE. REASON 00D70008, TYPE OF RESOURCE
00000220, AND RESOURCE NAME xxxxxx.DSNDBC.DSNDB04.xxxxxxxx.I0-
001.A001
DSNT418I SQLSTATE = 57011 SQLSTATE RETURN CODE
DSNT415I SQLERRP = DSNXOD2 SQL PROCEDURE DETECTING ERROR
DSNT416I SQLERRD = -205 13172746 0 13820889 -1041948669
12714048 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'FFFFFF33' X'00C9000A' X'00000000'
X'00D2E3D9' X'C1E52003' X'00C20040' SQL DIAGNOSTIC
INFORMATION
DSNT417I SQLWARN0-5 = , , , , , SQL WARNINGS
DSNT417I SQLWARN6-A = , , , , SQL WARNINGS
 
The meaning of the message was that the table space could not be created but there were no additional messages
in the output to figure out the cause. Plan Analyzer automatically creates the Db2 objects that are needed for the
Explain if they have not been created previously.     

Resolution

Problem was how the tablespace were created by default depending on parameters in DSNZPARM.
 
In DSSZPARM there was: IMPDSDEF = NO and DSSIZE = 64G
 
DSSIZE = 64G requires an extended format and extended addressability attributes that are defined through DFSMS,
this dataset could not be allocated in EF-EA format so it failed with the SQLCODE = -904 and REASON 00D70008.
 
Changed to DSSIZE = 1G and now the Explain worked fine.
 
In hlq.CDBAPARM(PPA) member there was DFLT_DB (DSNDB04) and DFLT_TS ().        
 
Another option should be to define datasets needed for Explain through DFSMS,
on this way Plan Analyzer will be able to create the Db2 objects with DSSIZE 64G.