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
 
How to Issuing the calls in IMS program ?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> IMS DB/DC
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    Post subject: How to Issuing the calls in IMS program ?
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: 1187
Location: Bangalore,India

PostPosted: Mon Aug 14, 2006 12:42 pm    Post subject:
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Mon Aug 14, 2006 1:16 pm    Post subject:
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    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Sun Aug 27, 2006 3:02 am    Post subject: Re: How to Issuing the calls in IMS program ?
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: 1187
Location: Bangalore,India

PostPosted: Mon Aug 28, 2006 12:49 pm    Post subject:
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: 1452
Location: Chicago, IL

PostPosted: Tue Aug 29, 2006 7:16 am    Post subject: Re: How to Issuing the calls in IMS program ?
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: 1187
Location: Bangalore,India

PostPosted: Tue Aug 29, 2006 10:15 am    Post subject:
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    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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm
No new posts pre-compiler for program in an HFS Pedro DB2 0 Fri Jun 23, 2017 11:13 pm
No new posts Compiling program in endeavor for tra... RALAKKAL Compuware & Other Tools 4 Mon Jun 05, 2017 8:27 pm

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