contents.gifindex.gifprev1.gifnext1.gif

7.3.3 AcuODBC Read-Only Directive

The AcuODBC Read-Only directive allows you to make some fields or columns of data read-only, while preserving normal access to other fields or columns. When placed immediately before a data item in an FD, this directive assigns the read-only attribute to the item. The Read-Only attribute applies only to the next data item with a pic clause and not to group items. Subsequent data items return to normal read-write access.


Note: This directive applies only to read-write versions of AcuODBC. It is ignored by read-only versions as well as by the ACUCOBOL-GT and ACUCOBOL-85 compilers.


Syntax

$XFD COMMENT ACUODBC READ-ONLY

To make an entire table read-only, you can embed the following statement anywhere in the FD:

Syntax

$XFD COMMENT ACUODBC READ-ONLY TABLE

If you add this directive to the FD, you should use the "xfdcrypt" utility included with AcuODBC to encrypt your XFDs. Otherwise, users could remove this directive to gain access to privileged fields. For information on encrypting XFDs, see the AcuODBC Hidden directive, above.