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
 
Command codes in IMS DB

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

New User


Joined: 28 Apr 2005
Posts: 11
Location: chennai

PostPosted: Fri Aug 25, 2006 12:15 pm    Post subject: Command codes in IMS DB
Reply with quote

Hi,

Can any one tell me how to use command code 'DP' in GU call to DB

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

tsantosh

New User


Joined: 03 Aug 2006
Posts: 8

PostPosted: Fri Aug 25, 2006 1:45 pm    Post subject:
Reply with quote

suppose ur GU call is getting a segment 3 level down the hierarchy. Now you are giving 3 qualified SSAs for it. One for the root, second for the parent of the segment being fetched and third for the segment being fetched. If you use a plain GU without command codes, you get only the 3rd level segment in your IO Area and the parentage is set at the 3rd level. But if you want to establish parentage at the root level or at the 2nd level, then you can use a command code (*DP after segment name) in the corresponding SSA, and you will get the 3rd level segment along with the one or two extra levels that you want. Also the parentage will be established at the level whose SSA has the P command code. Make sure not to use the P command code in more than one SSAs. You can use the D command code in both upper levels though.
Back to top
View user's profile Send private message
d_ezhil

New User


Joined: 28 Apr 2005
Posts: 11
Location: chennai

PostPosted: Fri Aug 25, 2006 2:28 pm    Post subject: Re: Command codes in IMS DB
Reply with quote

you mean to say command code DP is the combination of command codes D and P. i.e. it's a path call and also set's parentage at the segment where command code is given.

Thanks a lot icon_smile.gif
Back to top
View user's profile Send private message
tsantosh

New User


Joined: 03 Aug 2006
Posts: 8

PostPosted: Fri Aug 25, 2006 5:53 pm    Post subject:
Reply with quote

yes.. thats correct
Back to top
View user's profile Send private message
er.manishawasthii

New User


Joined: 24 Oct 2008
Posts: 6
Location: Pune

PostPosted: Fri Oct 31, 2008 2:10 pm    Post subject:
Reply with quote

But what is the use of P . Like if I'm setting a p on second level.. What is the adavntage of it..............
Back to top
View user's profile Send private message
Suthagar

New User


Joined: 01 Jul 2005
Posts: 26
Location: Chennai

PostPosted: Thu Nov 06, 2008 2:14 pm    Post subject:
Reply with quote

Once you set your parentage at the second level that will give you the freedom of getting all the occurences in the level 3 segment types by using the set of GN calls.
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 MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am
No new posts Command to find TMEMBER name for a TPIPE Siva NKK Kothamasu IMS DB/DC 0 Wed Aug 16, 2017 6:08 pm
This topic is locked: you cannot edit posts or make replies. rexx to create a tso command Bharath Vikraman CLIST & REXX 1 Tue Aug 08, 2017 3:32 pm

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