IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

DB2 Package Location & Contents


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Tue Jul 12, 2011 11:34 pm
Reply with quote

Hi,
We know that DB2 package resides in DB2 directory and it is not accessible by SQL query.

Is there any way to browse the DB2 directory ? so that I can see the packages even if they are not in readable format.

If it is installation specific any sample location may help me to find my location because most of the location format file naming convention is same in DB2 throughout the sites.

Thanks
Prasun
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Jul 13, 2011 12:07 am
Reply with quote

A list of packages can be found in table: SYSIBM.SYSPACKAGE

A list of the Package Statements can be found in table: SYSIBM.SYSPACKSTMT

I hope this helps...
Back to top
View user's profile Send private message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Wed Jul 13, 2011 10:25 am
Reply with quote

Sorry daveporcelan.

SYSIBM.SYSPACKAGE & SYSIBM.SYSPLAN are the DB2 catalog. These DB2 catalog contains information about DB2 packages and plans but actual package and plans are stored in DB2 directory.

Thanks
Prasun
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Wed Jul 13, 2011 10:44 am
Reply with quote

publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2z10.doc.intro/src/tpc/db2z_directory.htm
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Wed Jul 13, 2011 1:03 pm
Reply with quote

prasun dhara,

Quote:
Is there any way to browse the DB2 directory ? so that I can see the packages even if they are not in readable format.

Can i ask you why ?

Thanks,
Sushanth
Back to top
View user's profile Send private message
daveporcelan

Active Member


Joined: 01 Dec 2006
Posts: 792
Location: Pennsylvania

PostPosted: Wed Jul 13, 2011 5:28 pm
Reply with quote

As the saying goes, 'you learn something everyday'. This was my 'something' for today.

In my many years, of working with DB2 and Packages, I never knew that.

For that matter, I never needed to.

Which leads to my question, what information is in this directory that you need to see?

How is this information helpful?
Back to top
View user's profile Send private message
prasun dhara

New User


Joined: 01 Mar 2008
Posts: 49
Location: kolkata

PostPosted: Wed Jul 13, 2011 10:41 pm
Reply with quote

PeterHolland,
Following DB2 Directory tablespace are used to store package & plans
SCT02
Quote:
Contains the internal form of SQL statements that are contained in an application. If you bound a plan with SQL statements in a prior release, DB2 created a structure in SCT02.

SPT01
Quote:
Skeleton package
Contains the internal form of SQL statements that are contained in a package


Now My question is there anyway to bows the content of these directory tablespace ?

Quote:
Can i ask you why ?


knowing the DB2 internal architecture/functioning in a better way.It's for learning.

Thanks
Prasun
Back to top
View user's profile Send private message
sushanth bobby

Senior Member


Joined: 29 Jul 2008
Posts: 1020
Location: India

PostPosted: Thu Jul 14, 2011 11:18 am
Reply with quote

prasun,

You can start looking into DSN1PRNT offline utility.

And do let us know what you find ?

Thanks,
Sushanth
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Mainframe openings in Techmahnidra fo... Mainframe Jobs 0
No new posts Rebind issue - Package DB2 2
No new posts how to show listing in physical locat... PL/I & Assembler 2
No new posts Conditional step execution based on P... JCL & VSAM 9
No new posts RMM Cannot move a volume from SHELF l... IBM Tools 0
Search our Forums:

Back to Top