obj = REFMEM/[PART,'part_name',]'reference_set_name',index[,IFERR,label:]
This statement cycles the members of a specified reference set and returns the object associated with the index number. If you do not specify a part name, then the work part is used by default. If the part is not loaded, the reference set is nonexistent, or the index is invalid, then an error occurs or the program branches to the optional IFERR label.
Parameter |
Description |
PART |
Specifies the use of a specific part name. |
'part_name' |
Specifies the name of the part. The part_name can be a string variable or a string literal. You can use the part name in the current directory or use a file specification. |
'reference_set_name' |
Specifies the name of the reference set. The name can be a string variable or a string literal. |
index |
The index you supply must be in the range [1, REFCNT]. |
IFERR,label: |
Specifies a label to which program execution jumps if an error occurs. |