Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is diff b/w GN and GU calls in case of qualified SSA ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
View previous topic :: :: View next topic  
Author Message
tanuj

New User


Joined: 08 Jan 2007
Posts: 2
Location: pune

PostPosted: Mon Nov 08, 2010 12:18 am    Post subject: What is diff b/w GN and GU calls in case of qualified SSA ?
Reply with quote

Hi,

Could you please let me know the diff b/w below two calls as both will give the same result.


Hospital
|
Ward
|
Patient


1)
GU PATIENT (PATNAME = KRISH)

2)
GN PATIENT (PATNAME = KRISH)


Thanks,
Tanuj
Back to top
View user's profile Send private message

Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Mon Nov 08, 2010 6:54 pm    Post subject:
Reply with quote

If that is the ONLY SSA in your call and the patient is a child of ward which is a child of hospital, you will not get anything with a GU.

THINK about it.
Back to top
View user's profile Send private message
tanuj

New User


Joined: 08 Jan 2007
Posts: 2
Location: pune

PostPosted: Wed Nov 10, 2010 1:22 am    Post subject: Hi
Reply with quote

icon_eek.gif
As per my understanding, its surely return a qualified patient segment.

Hospital
|
Ward
|
Patient


GU PATIENT (PATNAME = KRISH)

In this case, as we have not mentioned any SSA for Hospital and Ward, DL/I will assume an Unqualified SSA for each missing or skipped segment types.

Could you please check and let me know ?
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Wed Nov 10, 2010 3:19 am    Post subject:
Reply with quote

I do not need to CHECK - I KNOW!

Hospital is the root - there can be 1 to many ward segments beneath that root. There then can be 1 to many patient segments beneath that ward.

The patient name "KRISH" may or may not be unique - it quite possibly can exist in may hospitals and within those many hospitals - in many wards.

IMS does not ASS-U-ME!

You cannot do a GU to a child segment or a segment down the chain without qualifying it's parent and above. THINK - IMS is positional - not relative.
Back to top
View user's profile Send private message
Suthagar

New User


Joined: 01 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Thu Nov 11, 2010 2:03 am    Post subject: Reply to: What is diff b/w GN and GU calls in case of qualif
Reply with quote

Hi Tanuj,

Though it is a bad way of coding (Qualified SSA for a 2nd level child segment without having an SSA for Parent and 1st level child), The code works as follows:

1. The first occurrence of the root segment (Hospital) would be fetched.
2. Under the fetched Hospital the first occurrence of the Ward segment would be fetched next.
3. It will search for the value PATIENT (PATNAME = KRISH) in the Patient segment.

Note:
When you are setting position in IMS database, the calls GU and GN works same (There is no difference).

Cheers,
Suthagar.S
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2442
Location: Netherlands, Amstelveen

PostPosted: Thu Nov 11, 2010 2:58 am    Post subject:
Reply with quote

Quote:

IMS does not ASS-U-ME!


36_2_35.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 RFE: DB2 support for mixed case names. Pedro DB2 0 Tue Jul 04, 2017 1:32 am
No new posts VALIDATE NULL VALUE IN DB2 CASE STATE... useit DB2 5 Thu Feb 09, 2017 4:34 pm
No new posts Summing on Mixed Case Literals Roy Ware SYNCSORT 3 Tue Jan 03, 2017 10:18 pm
No new posts Sending system service calls by AIBTDLI. lind sh IMS DB/DC 1 Wed Mar 16, 2016 6:51 pm
No new posts Case insenstive in INCLUDE Condtion smileseenu DFSORT/ICETOOL 2 Mon Feb 15, 2016 8:42 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us