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

Usage of Segment types(SSAs) in GN call....


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

New User


Joined: 03 Jun 2008
Posts: 11
Location: Hyderabad

PostPosted: Mon Jun 22, 2009 11:13 am
Reply with quote

Hi All,
Can you please clarify the following.
I have a 5 level hier IMS database.
a.Qualifying the root , how can i get all the segments under that root using GN call.Do we need to mention all the SSAs in call to get these segments.

b.I have 4 segment types in level 2.Qualifying segment at level 1,how do we get 2 segment types in level 2 in a gn call.What r the ssas to be mentioned in call.

Please let me know your suggestions in this regard.

Regards,
Jonai.
Back to top
View user's profile Send private message
rajesh1183

New User


Joined: 07 Jan 2008
Posts: 98
Location: Hyderabad

PostPosted: Mon Jun 22, 2009 2:31 pm
Reply with quote

a) Go to the required root segment. Issue a GN call and compare the segment name that was retreived or segment level that the current segment has been retreived for every GN call. If segment level is 1 or segment name is the root segment, then all segments under the previous root segment has been retreived/read. Do not mention any SSA in the call. Segment name or segment level fields can be found in the PCB-MASK definition

b) Go to required root segment using a GU or GN call. Then issue a GNP call with an SSA of the required segment. two GNP calls with different SSA's would be required.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Mon Jun 22, 2009 3:21 pm
Reply with quote

Quote:
I have a 5 level hier IMS database
What is "hier" here? Hierarchical?
Back to top
View user's profile Send private message
Jonai

New User


Joined: 03 Jun 2008
Posts: 11
Location: Hyderabad

PostPosted: Tue Jun 23, 2009 10:41 am
Reply with quote

Thanks for the reply Rajesh and Anuj.
Both the problems are resolved with GN calls with No SSA.
I tried it with Segment level capturing and processing.

Yes Anuj.
It is Hierarchical database with 5 levels.

Thanks all for your support.


Regards,
Jonai
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jun 23, 2009 11:00 am
Reply with quote

Glad to hear that you've got he solution.

Please avoid using "short forms" -- not every body belongs to same envireonment where you work-in and on this board users log in from across globe. So better use those terms which are universly known, you may expect better and fast replies then.

Have a good one icon_smile.gif

Ad
Back to top
View user's profile Send private message
Jonai

New User


Joined: 03 Jun 2008
Posts: 11
Location: Hyderabad

PostPosted: Tue Jun 23, 2009 11:41 am
Reply with quote

Fine Anuj.Thanks.

I'll avoid short forms from now on .
Regards,
Jonai.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


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

PostPosted: Tue Jun 23, 2009 4:03 pm
Reply with quote

You're welcome.

have a nice stay here... icon_smile.gif
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 Error while running web tool kit REXX... CLIST & REXX 5
No new posts Call program, directly from panel CLIST & REXX 9
No new posts STEM usage in REXX CLIST & REXX 14
No new posts Batch call online program, EXCI task ... CICS 3
No new posts CSQBGET - Call giving completion code... COBOL Programming 3
Search our Forums:

Back to Top