[quote=“Ralph Zbrog”]
Set the latter part of the FROM value to spaces (or low values) and the latter part of the TO value to Zs (or high values).
DEFINE DATA LOCAL
1 EMP VIEW EMPLOYEES
2 DEPT-PERSON
*
1 #FROM (A26) 1 REDEFINE #FROM
2 #DEPT (A6)
1 #TO (A26) INIT FULL LENGTH {H'FF'} /* should be < >
1 REDEFINE #TO
2 #DEPT (A6)
END-DEFINE
*
ASSIGN #FROM.#DEPT = #TO.#DEPT
= 'TECH03'
READ EMP BY DEPT-PERSON FROM #FROM
TO #TO
DISPLAY DEPT-PERSON (EM=XXXXXX^X(20))
END-READ
END
Thanks for the code,But my problem is #dept can have many values…
it does not contain a single value … In such a case I’ll have to change the value of #dept everytime which will be a bit tedious.If you can suggest another way out it would be much helpful.Thanks once again
Can you make A2 into a descriptor (or add a new super)? A superdescriptor is a single compound index, not multiple indexes, so you can’t really search by only a sub-component of a superdescriptor.