The following statements allow you to place a data reference to an existing data object in a reference variable:
GET REFERENCE OF <obj> INTO <dref>.
<obj> can be a statically-declared data object, or a field symbol pointing to any object (including a dynamic object). If you specify a field symbol to which an object has not yet been assigned, a runtime error occurs.
If you place a reference to a local field in a
procedure in a global reference variable, the reference will become invalid when you leave the procedure. You cannot then deference the reference variable.