Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

No. of occurances in a segment in IMS

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: No. of occurances in a segment in IMS
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: 1452
Location: Chicago, IL

PostPosted: Thu Jul 27, 2006 11:04 am    Post subject: Re: No. of occurances in a segment in IMS
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: 1452
Location: Chicago, IL

PostPosted: Thu Jul 27, 2006 11:06 am    Post subject: Re: No. of occurances in a segment in IMS
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    Post subject: Re: No. of occurances in a segment in IMS
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: 1452
Location: Chicago, IL

PostPosted: Fri Jul 28, 2006 7:06 pm    Post subject: Re: No. of occurances in a segment in IMS
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    Post subject:
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Mon Jul 31, 2006 11:59 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> IMS DB/DC All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Deleting and Inserting an IMS Segment... mohammad amir ashraff IMS DB/DC 8 Thu Jun 06, 2013 3:03 pm
No new posts Need to get all the records of all th... GaniKrish143 COBOL Programming 13 Wed Jan 30, 2013 2:51 pm
No new posts Jcl for ims DB index rebuilding which... dick scherrer IMS DB/DC 5 Mon Jul 11, 2011 1:22 pm
No new posts Inserting duplicate segment into IMS DB Ambili S IMS DB/DC 6 Thu Feb 03, 2011 11:44 am
No new posts IMS Error- Invalid segment qualification narasimha.g IMS DB/DC 2 Thu Aug 12, 2010 8:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us