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

No. of occurances in a segment in IMS


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

New User


Joined: 24 Jul 2006
Posts: 6

PostPosted: Mon Jul 24, 2006 6:13 pm
Reply with quote

how will u find the No. of occurances in a segment in IMS hierarchy
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Jul 27, 2006 11:04 am
Reply with quote

Give a GN Call to that perticular segment until you get a end of record status code that is GE or GB (I dun remember, it has been time now I worked on)... Increment a couner every time return code is SPACES....

at the last value of counter is what u need....
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Jul 27, 2006 11:06 am
Reply with quote

See this link...
Back to top
View user's profile Send private message
smily
Warnings : 1

New User


Joined: 24 Jul 2006
Posts: 6

PostPosted: Fri Jul 28, 2006 6:40 pm
Reply with quote

Thanks for all ur views

i would like to know if there is any other method
like getting some information from DBD
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Fri Jul 28, 2006 7:06 pm
Reply with quote

Quote:
getting some information from DBD

From DBD... How ?

Can you explain your question again.... I hope I didnt get it wrong...
Back to top
View user's profile Send private message
PascalQ

New User


Joined: 12 May 2006
Posts: 20

PostPosted: Fri Jul 28, 2006 9:48 pm
Reply with quote

priyesh answered your question. Another method would be using the IMS pointer checker.

If you're not looking for the number of occurences of each segment but for the number of segments, you'll find that straight in the DBD, of course.
Back to top
View user's profile Send private message
smily
Warnings : 1

New User


Joined: 24 Jul 2006
Posts: 6

PostPosted: Mon Jul 31, 2006 11:46 am
Reply with quote

i was asked if there is any method to know the No. of occurances in a segment
i would like to know if there is any command
like F for first occurance or from DBD
like u get to knw the Size of the segment
so can we find the occurances from the size the segment is occupying
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Jul 31, 2006 11:59 am
Reply with quote

No we cant get the number of occuances directly .. the only meathod which Priyesh told you.
And Btw f is a comman code it is dirctly go to first occurance for that segment
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 IMS SEGMENT READ ISSUE IMS DB/DC 1
No new posts Inserting records into the empty segm... IMS DB/DC 1
No new posts REORG to reduce segment size new DBD IMS DB/DC 2
No new posts How to find if segment is read in any... IMS DB/DC 12
No new posts Splice more than 50 occurances DFSORT/ICETOOL 1
Search our Forums:

Back to Top