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

How to Issuing the calls in IMS program ?


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

New User


Joined: 09 Aug 2006
Posts: 5
Location: kerala

PostPosted: Thu Aug 10, 2006 5:33 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Aug 14, 2006 12:42 pm
Reply with quote

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
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Mon Aug 14, 2006 1:11 pm
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Aug 14, 2006 1:16 pm
Reply with quote

Hi Neelesh,

Its means that you want to access all the decendent of a particular segment.
Back to top
View user's profile Send private message
neelesht

New User


Joined: 24 Jul 2006
Posts: 99
Location: Los Angeles

PostPosted: Mon Aug 14, 2006 1:26 pm
Reply with quote

Thnaks alot Ekta......

Enjoy....
Neelesh
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Sun Aug 27, 2006 3:02 am
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Aug 28, 2006 12:49 pm
Reply with quote

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
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Tue Aug 29, 2006 7:16 am
Reply with quote

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
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Aug 29, 2006 10:15 am
Reply with quote

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
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 Using API Gateway from CICS program CICS 0
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts DB2 Event passed to the Application P... DB2 1
No new posts How to pass the PARM value to my targ... COBOL Programming 8
No new posts REXX code to expand copybook in a cob... CLIST & REXX 2
Search our Forums:

Back to Top