A reference points to a specific instance of a resource in the application dictionary. References are stored in reference fields or in local variables that have the reference storage type.
In your application, you can create a reference to a specific instance of a resource. In sanScript, you use the reference to refer to the resource, instead of referring to the resource directly. This can make your code more general-purpose, because you can change the reference without affecting the remainder of your code.
For instance, you can create a reference to a specific table buffer. Then in your sanScript code, you can use the reference instead of accessing the table buffer directly. This is shown in the following illustration.
If some characteristic of the table buffer changes, such as the table name or the table buffer location, you can simply change the reference. Your other sanScript code will be unaffected.
Information about references is divided into the following sections: