CL Command Reference - CRTSPADCT

CL Command List > CRTSPADCT Reference

Description:

The Create Spelling Aid Dictionary (CRTSPADCT) command allows the user to create a user-defined spelling aid dictionary. This dictionary is used with the Create Document (CRTDOC), Check Document (CHKDOC), Edit Document (EDTDOC), or Work with Documents (WRKDOC) commands when doing spell check functions, such as spelling aid and spelling verification.

Spelling aid dictionaries are classified into IBM language dictionaries and user dictionaries. Language dictionaries are IBM-created; user dictionaries are created with this command.

This command requires a source file to contain all the words being put into the spelling aid dictionary. The source member can be created by using the Start Source Entry Utility (STRSEU) command. The dictionary source type is SPADCT.


Examples:

CRTSPADCT SPADCT(MYLIB/MYDCT) SRCFILE(MYLIB/SRC)
SRCMBR(WORDS) OPTION(*NOSRC)
BASEDCT(QGPL/BASDCT) VFYDCT(QDCT/US)
LNGATR(*ENGLISH) REPLACE(*YES)

This command creates a spelling aid dictionary named MYDCT in the library MYLIB. The words used in the spelling aid dictionary are from source member WORDS of the SRC source file in MYLIB. The dictionary includes words from a dictionary named BASDCT, but does not contain any words that are found in the dictionary named US. The dictionary being created has the *ENGLISH attribute. If an existing dictionary is named MYDCT, it is replaced.