Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

Parameter

Syntax Rule

Usage Notes

Example

CDD/Plus Dictionary Data Definition Language Utility VALID_FOR_DATATRIEVE_IF — VMS CDD+_4.1A

 The  VALID_FOR_DATATRIEVE_IF  field  attribute  clause   causes   VAX
 DATATRIEVE  to validate value assignments to a field.  VAX DATATRIEVE
 refuses to assign a value to a field if that value is not accepted by
 this validation expression.

Additional information available:

ParameterSyntax RuleUsage NotesExample

Parameter

 dtrvi_quoted_string

      VAX DATATRIEVE source text forming a validation expression.

Syntax Rule

 The quoted strings  must  form  a  valid  VAX  DATATRIEVE  validation
 expression.    The  CDDL  compiler  does  not  check  the  validation
 expression for correct syntax.

Usage Notes

  o  Only VAX DATATRIEVE can interpret these  validation  expressions.
     Other language processors ignore their presence.

  o  You can use 8-bit characters in CDDL quoted strings.


Example

 In the following example, the VALID FOR DATATRIEVE IF  clause  causes
 VAX  DATATRIEVE  to  accept  only  positive  integers  for  the field
 TRANSACTION_COUNT.

 TRANSACTION_COUNT       DATATYPE IS UNSIGNED WORD
                         VALID FOR DTR IF
                             "TRANSACTION_COUNT > 0".

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026