Creates a temporary definition of a DEC DATATRIEVE port. It has a different syntax than the DECLARE PORT statement. The DECLARE PORT command can be used only as top level phrase; it only creates the temporary definition without readying the port. Format DECLARE PORT port-name [USING] record-name ;
1 – Arguments
port-name Is the name of the port being defined. It must be a simple name. record-name Is the name of a DECLARED record, or the full or relative dictionary path of the record definition to be associated with the port. ; (semicolon) Ends the port definition.
2 – Example
The following example defines a port for transferring records between the YACHTS domain and an application program: DTR> DECLARE PORT MY_YPORT USING CDD$TOP.DTR$LIB.DEMO.YACHT; DTR>