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 QUERY_NAME — VMS CDD+_4.1A

 The QUERY_NAME field attribute clause provides VAX DATATRIEVE with an
 alternate  reference  name for a field.  VAX DATATRIEVE allows you to
 refer to a field either by its field name or  by  a  specified  query
 name.

Additional information available:

ParameterSyntax RuleUsage NotesExample

Parameter

 dtrqn_quoted_string

      The VAX DATATRIEVE query name.

Syntax Rule

 The quoted string must be a valid VAX  DATATRIEVE  query  name.   The
 CDDL compiler does not check the quoted string for correct syntax.

Usage Notes

  o  Only  VAX  DATATRIEVE  supports  the  QUERY_NAME  clause.   Other
     processors ignore it.

  o  You can specify a query  name  for  a  field  only  if  you  have
     specified a field name for it in the field description statement.
     You can not specify a query name for unnamed fields.

  o  QUERY_NAME  is  different  from  NAME  because   VAX   DATATRIEVE
     recognizes both the query name and the original field name.  With
     NAME, the facility-specific name is the only name  recognized  by
     the specified language or language processor.

  o  Choose a query name that is shorter and easier to  remember  than
     the  actual field name.  You can then choose a field name that is
     descriptive of the field's contents and purpose.

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


Example

 In the following example, the QUERY_NAME clause specifies  TP  as  an
 alternate DATATRIEVE name for the field TOTAL_PRICE.

 TOTAL_PRICE            DATATYPE IS VIRTUAL FIELD
                        COMPUTED BY DTR AS
                           "UNIT_PRICE * QUANTITY"
                        QUERY_NAME FOR DTR IS "TP".


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