View previous topic :: View next topic
|
Author |
Message |
mkumar_usinfo
New User
Joined: 09 Aug 2006 Posts: 5 Location: kerala
|
|
|
|
i am new to IMS right now i am working in development project,
I have a few a questions on issuing the calls in the IMS Program,
so please any one of u can give the answer on the below question
Note: Here "what type of call " means : like GU , GN, GNP or other type
1) if I want to access the hole segment then what type of call I should give ?
2) if I wants to access the particular occurrences of the root segment what type of call
I should give?
3) If i wants to access all occurrence of the root segment then what type of call I should give?
4) If I wants to access all the occurrence of the every segment from the second level ?
5) If I wants to access all the segments from towards below one segment then what call I should give?
6) if I want to delete the particular segment then what call I have to give before delete the segment ? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
HI MKR,
1) if I want to access the whole segment then what type of call I should give ?
What do you mean by that do u want to get all the occurrence of particlular segment?
2) if I wants to access the particular occurrences of the root segment what type of call
I should give?
You need to give qualified ssa GU call for this
3) If i wants to access all occurrence of the root segment then what type of call I should give?
In one shot u cant get it u need to give GU then continously GN until return code is GB(End of database)
4) If I wants to access all the occurrence of the every segment from the second level ?
Set the parentage on that segment by GU call then give GNP
5) If I wants to access all the segments from towards below one segment then what call I should give?
Set the parentage on that segment by GU call then give GNP
6) if I want to delete the particular segment then what call I have to give before delete the segment ?
You need to give GH call to hold that particular segment then need just issue DLET call
Hope it will helpful |
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Hi Ekta/MKR,
Could you please let me know what does this qns mean ?
5) If I wants to access all the segments from towards below one segment then what call I should give?
Set the parentage on that segment by GU call then give GNP
Thanks alot Ekta for all the answers....
Enjoy....
Neelesh |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Neelesh,
Its means that you want to access all the decendent of a particular segment. |
|
Back to top |
|
|
neelesht
New User
Joined: 24 Jul 2006 Posts: 99 Location: Los Angeles
|
|
|
|
Thnaks alot Ekta......
Enjoy....
Neelesh |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi Ekta,
Ekta wrote: |
3) If i wants to access all occurrence of the root segment then what type of call I should give?
In one shot u cant get it u need to give GU then continously GN until return code is GB(End of database) |
Is it right to give a GU and then GN to get all occurrences of the root segment, I am not sure if it is going to give you all the occurrences.
Also one more point, when we say all occurrences we dont have any specific value to pass in the GU call.
I would prefer continuous GN until end-of-database.
Please correct, if I m wrong. I really need some HRECALL on my IMS DB things... as I m totally out of touch now a days.
Regards,
Priyesh. |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Priyesh,
Yeap You are right first we need to give Gu Call for that segment or we can also gi9ve gn call it will automatically fetch the first occurance of the root than GN call giveus the further occurances.
Hope it will helpful for you |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi Ekta,
Firstly thanks for letting me think I havn't forgotten everything. And yes ur comments indeed help me.
But actually I was saying we cant give GU call when it comes to fetch all... because you dont know what first occurrence contain to pass on first GU call. So it should be only consecutive GNs upto a GB.
Do I make any sense ? |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Yeap u r right if u know the unique key for the first ocuurance than issue GU call followed by GN until end of datbase otherwise issue only GN call until reach end of database |
|
Back to top |
|
|
|