MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DB2 Plan Name Length

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
matt9go
Beginner


Joined: 17 Dec 2007
Posts: 2
Topics: 1
Location: Pennsylvania

PostPosted: Wed Mar 25, 2009 10:47 am    Post subject: DB2 Plan Name Length Reply with quote

It is my understanding that with DB2 V8, the Plan Name Length has changed from a max of 8 to a max of 24.

When I try to Bind a Plan with a length of 9, I get the error shown below.

Please tell me what I need to do to allow a longer Plan Name.

Thanks...

DSN SYSTEM(DSY1)
DSN
BIND PLAN (SR55TSXGF) OWNER(DEVOWN) PKLIST(SR55_BATCH.*) VALIDATE(RUN)
CURRENTDATA(NO) DEGREE(1) RETAIN
IKJ56702I INVALID PLAN IDENTIFIER, SR55TSXGF
IKJ56701I MISSING PLAN NAME:+
IKJ56701I MISSING 1 ALPHABETIC + UP TO 7 ALPHANUM/NATIONAL CHARS
DSN
END
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Mar 25, 2009 12:23 pm    Post subject: Reply with quote

matt9go wrote:
It is my understanding that with DB2 V8, the Plan Name Length has changed from a max of 8 to a max of 24.


matt9go,

I am not sure as to where you got that info but the z/OS DB2 only supports 8 bytes. Check this link

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DSNSQJ12/A.0?

The last but one entry in the first table in that link tells that plan name is still 8 bytes.

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
matt9go
Beginner


Joined: 17 Dec 2007
Posts: 2
Topics: 1
Location: Pennsylvania

PostPosted: Thu Mar 26, 2009 7:23 am    Post subject: I am refering to PLAN name Reply with quote

Maybe my initial post was not clear...

I am trying to Bind a PLAN (mentioned six times in my post).

The information you provided is for a Package (never mention in my post).

If you look at the SYSIBM.SYSPLAN table:
Code:

 Cmd F == Table: SYSIBM.SYSPLAN(T1) ================
                NAME                    CREATOR
      --------VCH(24)--------- =========VCH(128)===

or the SYSIBM.SYSPACKLIST table:
Cmd F == Table: SYSIBM.SYSPACKLIST(T1) =====
              PLANNAME           SEQNO
      --------VCH(24)--------- -SMALLINT- ==

You see the the field is vch(24). This is where my information comes from.

I appreciate any help you can provide.
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Mar 26, 2009 7:50 am    Post subject: Reply with quote

matt9go,

refer back to kolusu's link. the item above package name:
Quote:
Name of buffer pool name, catalog,
database, plan, program, tablespace
all are 8 bytes.

the attributes of a column should not be construed as the definition of the value contained. the only information you obtained is the attributes of the column.
from there you made an false assumption.

you were so ready to defend your error, you missed the answer.
Quote:
I appreciate any help you can provide.

i imagine this is embarrassing for you, considering you must change your plan name (and possibly everyone else who followed your advice).
suggest you stop making assumptions, and look for hard coded definitions. I realize that finding things in the manuals can be a real pain, but the pain incurred when one researches is less than the pain of making errors.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Mar 26, 2009 10:00 am    Post subject: Reply with quote

matt9go wrote:
The information you provided is for a Package (never mention in my post).


matt9go,

Woah. You seem to have trouble following directions. And your assumption about the planname being 24 bytes is from the column attributes of catalog tables? bonk

Kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Mar 26, 2009 10:11 am    Post subject: Reply with quote

by the way
Quote:
I am trying to Bind a PLAN (mentioned six times in my post).


actually 7 times (also in the title)
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group