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 P,D,V,U applicable in the IMS programs

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

New User


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

PostPosted: Sat Sep 08, 2007 4:28 pm    Post subject: Command codes P,D,V,U applicable in the IMS programs
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    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 09, 2007 6:55 pm    Post subject:
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: 1105
Location: The Netherlands at Hole 19

PostPosted: Sun Sep 09, 2007 7:01 pm    Post subject:
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    Post subject: Reply to: Command codes P,D,V,U applicable in the IMS progra
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:

http://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: 1105
Location: The Netherlands at Hole 19

PostPosted: Wed Sep 12, 2007 1:43 am    Post subject:
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    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 pointers on using USS and C programs. Pedro All Other Mainframe Topics 0 Wed Oct 04, 2017 4:38 am
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 PLI - printing from multiple programs Pedro PL/I & Assembler 8 Fri Sep 08, 2017 6:36 am
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

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