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

Command codes in IMS DB


IBM Mainframe Forums -> IMS DB/DC
Post new topic   Reply to topic
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
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> IMS DB/DC

 


Similar Topics
Topic Forum Replies
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
No new posts LTJ command CA Products 4
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
Search our Forums:

Back to Top