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

how to get count of segments without reading all


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chand123

New User


Joined: 01 Aug 2012
Posts: 2
Location: India

PostPosted: Fri Aug 03, 2012 2:36 am
Reply with quote

Hi,

I am trying to find a way to get the count of segments under each root in a DB without reading all the segments thru GNP. Does anybody know how can we do this?

need to get the key for each root along with count of child segments under that
Back to top
View user's profile Send private message
chand123

New User


Joined: 01 Aug 2012
Posts: 2
Location: India

PostPosted: Fri Aug 03, 2012 5:20 pm
Reply with quote

Is there any DB unload utility or so? Can somebody please throw some light on this?

I did search and couldn't find any icon_sad.gif
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Fri Aug 03, 2012 6:25 pm
Reply with quote

If I recall correctly, segment counts are produced by the reorg utility. Ask your DBA. Unload should also provide counts, depending on which product you have available.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 03, 2012 6:41 pm
Reply with quote

1. By just COBOL as your only weapon, I doubt if there is a way round, GNP, GN is the way to go.

2. If you just want to know the total number of segments, get a copy of the 'analyse report' from your SysProgs. The analyser should be run by systems programmers on a regular basis.

3. This link talk about Segment Count Summary report but I've not worked with it, so you need to do a bit of labor.

4. And at another shop, with BMC utility one could get all segment counts. But that's not availble at this shop and I do not really recall what was it. In other words, if you've BMS utilities for IMS available at your shop, you may try your luck with them too.
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 -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts To get the count of rows for every 1 ... DB2 3
No new posts To find whether record count are true... DFSORT/ICETOOL 6
No new posts Validating record count of a file is ... DFSORT/ICETOOL 13
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts Find the size of a PS file before rea... COBOL Programming 13
Search our Forums:

Back to Top