OPENPTR
Open a pointer file for a database. The internal variable %PTRS is set to the number of pointers in the file.

Format
Openptr expr for DATABASE as TAGNAME [/Qualifiers ...]
exprThe name of the pointer file, or the default pointer file if expr is "".

Qualifiers
 /AppendAdd new pointers to the end of the pointer file (see PUTPTR).
/Fail=LABELLabel to which to branch if the statement fails.
If LABEL is %EXIT, exit the routine or loop.
If in a loop, and LABEL is %CONTINUE, continue the loop. If not in a loop, and LABEL is %CONTINUE, an error message displays.
 /Succeed=LABELLabel to which to branch if the statement succeeds.
If LABEL is %EXIT, exit the routine or loop. If in a loop, and LABEL is %CONTINUE, continue the loop. If not in a loop, and LABEL is %CONTINUE, an error message displays.
 /NofailDo not signal an error. Instead, set the
internal variable %FAIL.
 /WriteOpen for write access. A new file will be created.

Example
Openptr "" as PTR/Append
! Open the default pointer file
Add to TRAN
! add a record to the database
Putptr using PTR
! add a pointer also