doctype Parameter

Sets file type.

Scope: File

Syntax

query doctype 
set doctype ExtensionName 

Option

ExtensionName 
The extension given to the filename when it is saved. Blanks are allowed.

Description

The doctype parameter sets or returns the filename extension that is used when the current file is saved. A file with no extension is given a doctype of LPEX when it is created.

Examples

  1. To find out the file type, type:
    query doctype 
  2. To call a COBOL macro when a file is saved or autosaved, type:
    set doctype cbl 

API Return Codes

-2 
The ExtensionName specified for the set doctype command contains more than 8 characters. Select a doctype of 8 characters or less.

save Command