Using command codes
BMC AMI Fast Path Indexer for IMS
supports most IMS command codes.
The IMS command code D is the only IMS command code that is associated with indexes. Command code D instructs the application program to obtain all segments in a particular path and place them in the I/O area. For example, if you have a database that includes information about a university and you want to obtain the Instructor, Location, and Course segments in a certain path, use the following call:
GU INSTR *D--(SRCVALU EQ000007000)
LOCN *D--(LOCNCD EQDDDD)
COURSE *D--(COURSE# EQ00005)
LOCN *D--(LOCNCD EQDDDD)
COURSE *D--(COURSE# EQ00005)
To obtain only the Instructor and Course segments, use the following call:
GU INSTR *D--(SRCVALU EQ000007000)
LOCN *---(LOCNCD EQDDDD)
COURSE *D--(COURSE# EQ00005)
LOCN *---(LOCNCD EQDDDD)
COURSE *D--(COURSE# EQ00005)
If you do not specify the last segment in a path (in this example, Course), IMS always assumes that you want to obtain it.
Related topic
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*