Comparing command codes and options
The following table compares the options you use with EXEC DLI commands with the command codes you use with DL/I calls. For example, the LOCKED option performs the same function as a Q command code.
| Call- Level | Command-Level | Allows You to . . . |
|---|---|---|
| C | KEYS option | Use the concatenated key of a segment to identify the segment. |
| D | INTO or FROM specified on segment level to be retrieved or inserted. | Retrieve or insert a sequence of segments in a hierarchic path using only one request, instead of having to use a separate request for each segment. (Path call or command). |
| F | FIRST option | 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 | LAST option | Retrieve the last occurrence of a segment under its parent. |
| M | MOVENEXT option | Set a subset pointer to the segment following the current segment. |
| N | Leave out the SEGMENT option for segments you do not want replaced. | Designate segments you do not want replaced, when replacing segments after a get hold request. Usually used when replacing a path of segments. |
| P | SETPARENT | Set parentage at a higher level than what it usually is (the lowest hierarchic level of the request). |
| Q | LOCKCLASS, LOCKED | Reserve a segment so that other programs are not able to update it until you have finished processing it. |
| R | GETFIRST option | Retrieve the first segment in a subset. |
| S | SET option | Unconditionally set a subset pointer to the current segment. |
| U | No equivalent for command level programs. | Limit the search for a segment to the dependents of the segment occurrence on which position is established. |
| V | CURRENT option | Use the hierarchic level of and levels above the current position as qualifications for the segment. |
| W | SETCOND option | Conditionally set a subset pointer to the current segment. |
| Z | SETZERO option | Set a subset pointer to zero. |
| – | No command-level equivalent. | Null. Use an SSA in command code format without specifying the command code. Can be replaced during execution with the command codes you want. |