LightWave Server
1.3.1 1.3.0 1.2.1 1.2.0 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4
1.3.1 1.3.0 1.2.1 1.2.0 1.1.9 1.1.8 1.1.7 1.1.6 1.1.5 1.1.4

Listing, Exporting and Importing Dictionaries

This subsection describes using LWSCOM to list, export and import Dictionaries. This can be useful when the Console is not available, and LWS Dictionaries must be copied from one filesystem to another, such as during a migration from QA to production.

Listing Dictionaries

The LWSCOM INFO command is used to retrieve information about the Dictionaries in a filesystem. This can be done for both the source and target filesystems.

LWSCOM 23-> help info dictionary
 
INFO DICTIONARY Command
 
Displays information about DICTIONARYs in the filesystem
 
  INFO DICTIONARY { <dictionary-name> | * }
       [ , DETAIL ]
 
{ <dictionary-name> | * }
 
  The name of the DICTIONARY, or '*' for all DICTIONARYs.
 
DETAIL
 
  Causes detailed information to be displayed. The use of this parameter is
  object-specific.

For example:

LWSCOM 19-> info dictionary *
Name                                                              Source
----------------------------------------------------------------  -----------------------------------------------------------------
io.example.test                                                   \NSK.$DATA.TESTDICT
 
--- 1 DICTIONARYs

The Source is the NonStop DDL dictionary subvolume from which the LWS Dictionary was created.

LWSCOM 32-> info dict io.example.test , detail
Name..................... io.example.test
Source................... \NSKIT06.$DATA13.TESTSVRE
Deployed................. 2026-11-06T17:31:47Z
Modified................. 2026-11-06T14:24:19Z

Note the “Deployed” timestamp: this is when the Dictionary was last deployed. Service, APIs referenced by Services, and Dictionaries associated with APIs must be deployed to be used. See Services for more information about deployment.

Exporting Dictionaries

The syntax for the LWSCOM EXPORT DICTIONARY command is:

LWSCOM 20-> help export dictionary
 
EXPORT DICTIONARY Command
 
Exports an DICTIONARY from the fileystem into a file
 
  EXPORT DICTIONARY <dictionary-name>
         , FILE <file-name> [ ! ]
 
<dictionary-name>
 
  The name of the DICTIONARY.
 
FILE <file-name> [ ! ]
 
  File to receive exported DICTIONARY definition.

For example:

LWSCOM 21-> export dictionary io.example.test, file mydict
DICTIONARY io.example.test exported to $DATA.LWSEXPO.MYDICT

The exclamation point after the filename means to overwrite the file if it exists.

The MYDICT file can then be used for a LWSCOM IMPORT command.

Importing Dictionaries

The syntax for the LWSCOM IMPORT DICTIONARY command is:

LWSCOM 24-> help import dictionary
 
IMPORT DICTIONARY Command
 
Imports an DICTIONARY into the filesystem from a file
 
  IMPORT DICTIONARY { <dictionary-name> | * } [ ! ]
         , FILE <file-name>
 
{ <dictionary-name> | * } [ ! ]
 
  The name to be used for the imported DICTIONARY, or '*' to use the
  DICTIONARY name contained in the file being imported.
 
FILE <file-name>
 
  File containing the DICTIONARY definition to be imported.

When importing a Dictionary, you can use the name for a specific dictionary (e.g., io.example.test) or use the “*” (asterisk) to accept the name of the dictionary when it was exported. Use the exclamation point to overwrite the existing dictionary.

For example:

LWSCOM 25-> import dictionary * !, file mydict
DICTIONARY io.example.test imported