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

Command codes P,D,V,U applicable in the IMS programs


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

New User


Joined: 06 Sep 2006
Posts: 44
Location: United States

PostPosted: Sat Sep 08, 2007 4:28 pm
Reply with quote

Hi Friends,

Could any of you please explain where the Command codes P,D,V,U applicable in the IMS programs?

Thanks,
S.Dinesh
Back to top
View user's profile Send private message
Sandy Zimmer

Active Member


Joined: 13 Jun 2007
Posts: 826
Location: Wilmington, DE

PostPosted: Sat Sep 08, 2007 6:12 pm
Reply with quote

Command "P" sets parentage at the level of the SSA where it is coded.

The pathcall command code "D" can be used to insert a path of segments. Only one of the SSAs would contain the "D" command code - the SSA corresponding to the first segment in the path to be inserted.

Do you have an IMS program that is using "U" and/or "V" command codes? In all my years of IMS, I have never used or seen any IMS programs that use the following 2 command codes. Remember that most of the life of a program is maintenance. You need to think of the most straight forward - easiest to maintain method. If you could tell us what you want to achieve, we can give you examples.

Th "U" command code may be used in lieu of building a qualified SSA when you want a call processed maintaining current position at the level(s) speicified by a "U". Example: you would issue a GU for the parent segment - issue GNP with the "U" command code.

The "V" command code is the same as the "U" command code, except that the command code is set automatically at all higher levels in the call.
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 09, 2007 6:55 pm
Reply with quote

TS (topic starter) might also have followed the sticky and after searching for 'command code' find results like this
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 09, 2007 7:01 pm
Reply with quote

This may also be found.
Back to top
View user's profile Send private message
sashi

New User


Joined: 14 Sep 2005
Posts: 54
Location: Chennai

PostPosted: Tue Sep 11, 2007 3:17 pm
Reply with quote

The U Command Code
As IMS satisfies each level in a retrieval or ISRT call, a position on the segment occurrence that satisfies that level is established.
The U command code prevents position from being moved from a segment during a search of its hierarchic dependents. If the segment has a unique sequence field, using this code is equivalent to qualifying the SSA so that it is equal to the current value of the key field. When a call is being satisfied, if position is moved to a level above that at which the U code was issued, the code has no effect for the segment type whose parent changed position.
U is especially useful when unkeyed dependents or non unique keyed segments are being processed. The position on a specific occurrence of an unkeyed or non unique keyed segment can be held by using this code.


The V Command Code
Using the V command code on an SSA is similar to using a U command code in that SSA and all preceding SSAs. Specifying the V command code for a segment level tells IMS that you want to use the position that is established at that level and above as qualification for the call.
Using the V command code is analogous to qualifying your request with a qualified SSA that specifies the current IMS position.



For more info:

publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.ims.doc.apdb/p3hgcco.htm
Back to top
View user's profile Send private message
Bitneuker

CICS Moderator


Joined: 07 Nov 2005
Posts: 1104
Location: The Netherlands at Hole 19

PostPosted: Wed Sep 12, 2007 1:43 am
Reply with quote

Wellcome to this forum sushi,

Is there any reason why you copied the information in text?

Looking forward to see more posts from you icon_lol.gif
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