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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: Usage of Segment types(SSAs) in GN call....
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    Post subject: Re
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

Senior Member


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

PostPosted: Mon Jun 22, 2009 3:21 pm    Post subject:
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    Post subject: Reply to: Usage of Segment types(SSAs) in GN call....
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

Senior Member


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

PostPosted: Tue Jun 23, 2009 11:00 am    Post subject:
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    Post subject:
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

Senior Member


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

PostPosted: Tue Jun 23, 2009 4:03 pm    Post subject:
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    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 )SEL and )ENDSEL usage cvnlynn TSO/ISPF 4 Thu Jun 15, 2017 1:15 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Need help in triggering a PL1 module ... Varungv99 IMS DB/DC 0 Fri Apr 07, 2017 10:01 am
No new posts Need inputs on Space requirement and... ashek15 IMS DB/DC 0 Sat Apr 01, 2017 8:26 am
No new posts Cobol EZASOKET call to SETSOCKOPT fails Andi1982 COBOL Programming 6 Thu Oct 06, 2016 7:12 pm


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