|
|
| Author |
Message |
KAMALAK
New User
Joined: 18 Jul 2005 Posts: 14
|
|
|
|
| pleasse send some material on command code |
|
| Back to top |
|
 |
References
|
Posted: Mon Sep 26, 2005 5:58 pm Post subject: Re: Command code in IMS DB/DC |
 |
|
|
 |
swathig
New User
Joined: 20 Sep 2005 Posts: 3
|
|
|
|
There are some command codes like F, N, C, V, U, P, D, Q etc
For finding various ways of retrieval in IMS. |
|
| Back to top |
|
 |
sanon
New User
Joined: 09 Dec 2005 Posts: 5
|
|
|
|
Some frequently used command codes are :
D - Put this segment into the IO?AREA (path call)
N - Do not replace this segment
C - Concatenated key in this SSA
F - Locate first occurrence
L - Locate last occurrence
P - Establish parentage at this level
U - Maintain current position at this level
V - Maintain current position here & higher
- - Null Command code. |
|
| Back to top |
|
 |
prasanth_thavva
Active User
Joined: 28 Jul 2005 Posts: 103 Location: Bangalore
|
|
|
|
| can you explain the above command codes ,, if any program please give an idea |
|
| Back to top |
|
 |
Bitneuker
IMS Moderator
Joined: 07 Nov 2005 Posts: 1143 Location: The Netherlands at Hole 19
|
|
|
|
From the manual:
C
Use the concatenated key of a segment to identify the segment
D
Retrieve or insert a sequence of segments in a hierarchic path using only one call, instead of having to use a separate call for each segment (path call).
F
Back up to the first occurrence of a segment under its parent when searching for a particular segment occurrence. Disregarded for a root segment.
L
Retrieve the last occurrence of a segment under its parent
M
Move a subset pointer to the next segment occurrence after your current position. (Used with DEDBs only.)
N
Designate segments that you do not want replaced when replacing segments after a Get Hold call. Usually used when replacing a path of segments.
P
Set parentage at a higher level than what it usually is (the lowest SSA level of the call).
Q
Reserve a segment so that other programs will not be able to update it until you have finished processing and updating it.
R
Retrieve the first segment occurrence in a subset. (Used with DEDBs only.)
S
Unconditionally set a subset pointer to the current position. (Used with DEDBs only.)
U
Limit the search for a segment to the dependents of the segment occurrence on which position is established.
V
Use the current position at this hierarchic level and above as qualification for the segment.
W
Set a subset pointer to your current position, if the subset pointer is not already set. (Used with DEDBs only.)
Z
Set a subset pointer to zero, so it can be reused. (Used with DEDBs only.)
-
Null. Use an SSA in command code format without specifying the command code. Can be replaced during execution with the command code or codes that you want. |
|
| Back to top |
|
 |
|
|