Software AG Products 2.4.1 | Reference Guide | Declaration Command | field-expressions | USERVIEW
 
USERVIEW
The USERVIEW option is for declaration of a whole userview file as defined in Predict. The userview file must be a set of fields contained in one Adabas file.
Adabas Pre-Compiler generates definitions for all fields within that file. For example:
@ADADCL6, EMPLOYEES,USERVIEW=SALARIES.
The record buffer definition is:
01 RECORD-BUF6.
02 PERSONNEL-ID6 PIC X(8).
02 INCOME6 OCCURS 10.
03 CURR-CODE6 PIC X(3).
03 SALARY6 PIC 9(9) COMP-3.
03 BONUS6 PIC 9(9) COMP-3 OCCURS 8.
The USERVIEW option allows for the change of the field default length and format. Adabas Pre-Compiler generates the new definition and specifies the length and format in the format buffer. The fields within a group must not be changed unless they are defined separately in the USERVIEW file, or the FORMAT keyword is specified.
The names of the fields are the full field names specified in Predict. You may use synonymous names by using the @OPTIONS SYNONYM statement.