You are on page 1of 2

Command Code’s :

Command Detailes

C ---------- Concatenated Key


D ---------- Path call
F ---------- First occurrence
L ---------- Last occurrence
N ---------- Path call ignore
P ---------- set parentage
Q ---------- Enqueue segment
U ---------- Maintain position at this level
V ---------- Maintain position at this and all superior levels
__ ---------- Null command code

Dli-Function Code’s : 4 byte function code describing the type of requested service.

GU ---------- Get Unique


GN ---------- Get Next
GNP ---------- Get Next Within Parent
GHU ---------- Get Hold Unique
GHN ---------- Get Hold Next
GHNP ---------- Get Hold Next Within Parent
ISRT ---------- Insert
DLET ---------- Delete
REPL ---------- Replace
CHKP ---------- Check point
XRST ---------- Restart
Status codes :

Status codes expected in sequential processing

‘ ‘ ---------- Successful GN or GNP call

AI ---------- data base open error.

AK ---------- field name in SSA can not be identified.

DA ---------- try to update the sequence field in REPL call

DJ ---------- try to update a segment without issue aget hold call.

GA ---------- A higher-level segment was retrieved


during sequential retrieval.(unqualified GN or GNP)

GB ---------- end of database reached during seq. retrieval.

GE ---------- A segment occurrence meeting all the


specified qualification was not found for a get call.

GK ---------- A segment of a different type but at the hierarchical


level was retrieved during sequential
retrieval. (Unqualified GN(P).
PROCOPT:
Defines the type of access to a database or segment. PROCOPTs can be used on the PCB or
SENSEG statements. used on the PCB or SENSEG statements.
Primary PROCOPT codes are as follows:
G  read only
R  replace, includes G
I  insert
D  delete, includes G
A  get and update, includes G, R, I, D
K  used on SENSEG statement; program will have key-only sensitivity to this segment
L  load database
Secondary PROCOPT codes are as follows:
E  exclusive use of hierarchy or segments
O  get only, does not lock data when in use
P  must be used if program will issue path call using the D command code
S  sequential (LS is required to load HISAM and HIDAM databases; GS gets in ascending sequence)

You might also like