I am learning how index work in OpenQM. But, my program is aborting when I try to address the "list.var"
SELECTINDEXV index.name {, value} FROM file.var TO list.var
Here is my test program:
PROGRAM TEST.SELECTINDEXV
OPEN "MEMBERS" TO MF ELSE CRT "CANNOT OPEN MEMBERS"; STOP
SELECTINDEXV 6,"999-999-9999" FROM MF TO MEMBER.ID
CRT MEMBER.ID
IF MEMBER.ID="" THEN
CRT "NO VALUE"
END
END
Here my results with the abort. MEMBER.ID is the correct ID.
:RUN BP TEST-INDEX2
00500
00000121: Value not found where required at line 5 of /usr/qmsys/TEST/BP.OUT/TEST-INDEX2
:
------------------------------
Tedmund Hurlbut
Self Registered
Simpsonville SC US
------------------------------