RAD function: contents

A RAD function that returns a structure containing the contents of the current record in a file variable.

Function

contents

Format

contents(file variable)

file variable is the contents you want to obtain.

Factors

If you use the contents() function to compare two records, always use the denull function on both records first to remove null values. If one record is displayed and the other is not, the arrays in one record may contain extra null values.

Using the denull function on an empty array of structures converts the array of structures to a simple array.

Note Always test for null values first, as shown in the following example:

denull(contents($save.rec))=denull(contents($rec))

Example

contents($file.variable)