When you know the RID of the record that you want, perhaps from an earlier &NDBADD, you can retrieve it by coding:
&NDBGET dbname RID=ridvalue FORMAT=fmtname
ridvalue is a variable containing an RID obtained elsewhere.
You can also code OPT=KGE, and so on, to retrieve a record with an RID satisfying the coded option. For example, OPT=KGT returns the record with the next-highest RID than the value passed. It is possible to simulate sequential reading by RID using this technique.
| Copyright © 2011 CA. All rights reserved. | Tell Technical Publications how we can improve this information |