Class Library | Embedded SQL Toolkit |
Many details of the compiler's behavior and of the COBOL language it accepts can be specified by directives. This chapter tells you whether default settings have changed since your previous COBOL system
This chapter also describes directives to help migration from IBM mainframes, including the DIALECT directive, which replaces the USE directive and wb*.dir files of Workbench.
See the chapter Embedded SQL Toolkit for directives relevant to SQL.
All default directive settings in NetExpress are the same as in Object COBOL V3.4, Workbench V3.4, Object COBOL V4.0, Workbench V4.0, and Visual Object COBOL V1.0.
The following directives are not in NetExpress:
BROWSE EXTINDEX OLDSTRSUB STRUCT XNIM
The following directives are accepted but do nothing as they are meaningless in NetExpress:
INCLUDE-FILLER MFOO REF
Specifying NODBSPACE CONVSPACE in a $SET in your source code in NetExpress does not make the File Handler convert DBCS space x"8140" to x"2020". To get this effect you must specify it in the project settings or on the command line.
This is because it works by setting COBSW=+Z, and this needs to be done before the source file is opened.
Here is a list of directives in NetExpress that make the compiler behave like an IBM mainframe compiler. These directives are not in Visual Object COBOL V1.0, but they are in Workbench V3.4 and Workbench V4.0. They are documented in the manuals you received with Workbench.
ADV AMODE CMPR2 COBOL370 CONVERTPTR DIALECT DOSVS DYNAM DYNAMICFD FLAGMIG FP-ROUNDING HOST-NUMCOMPARE LIBRARIAN MAPNAME ODOOSVS OLDCOPY OSVS PANVALET PROGID-COMMENT PROTECT-LINKAGE RDEFPTR RDW SAA TRACE VSC2 ZWB
In Workbench, files of directives (wb*.dir files) are supplied containing sets of directives to make the COBOL accepted by the compiler match particular dialects, and you can use the USE(filename) directive to specify which one to use. This makes it easy to migrate programs originally written for non-Micro Focus COBOL systems, especially for IBM mainframes.
In NetExpress these files and the USE directive are replaced by the DIALECT directive. In the DIALECT directive, you specify the dialect you want, and the necessary directives are set for you.
The DIALECT directive is defined below.
Makes the compiler accept a specified dialect. Sets other directives to enable run-time and compile-time behaviour appropiate to that dialect.
>>----------DIALECT(dialect)-------><
dialect |
Possible values: ANS85 COBOL370 DOSVS ISO2000
MF OSVS SAA1 SAA2 VSC21 VSC22 VSC23 VSC24 |
Default: NODIALECT
$SET: initial
There is no explicit NODIALECT
setting. DIALECT(dialect)
is equivalent to USE(WBdialect.dir)
in other Micro
Focus COBOL systems. The various settings of the parameters set directives
as follows.
NOANS85 NOCOBOLDIR COMS85 COPYLBR NODBCHECK NODBCS NODBSPACE FLAG"ISO2000" FLAGCD"W" NOFLAGSTD FOLDCALLNAME"UPPER" FOLDCOPYNAME"UPPER" INTLEVEL"4" ISO2000 NOMF NOMFCOMMENT NESTCALL NOOPTIONAL-FILE NORESEQ WARNING"3" ZEROLENGTHFALSE
ANS85 NOCOBOLDIR COMS85 COPYLBR NODBCHECK NODBCS NODBSPACE NOFLAG FLAGCD"W" FLAGSTD"H C2 D2 S2 R O" FOLDCALLNAME"UPPER" FOLDCOPYNAME"UPPER" INTLEVEL"2" NOISO2000 NOMF NOMFCOMMENT NESTCALL NOOPTIONAL-FILE NORESEQ WARNING"3" ZEROLENGTHFALSE
APOST AREACHECK ARITHMETIC"VSC2" ASSIGN"EXTERNAL" NOBOUND BYTEMODEMOVE CHARSET"EBCDIC" CHECKDIV"VSC2" COBFSTATCONV NOCOBOLDIR COMS85 COPYEXT"CPY,CBL" COPYLBR DBCS"2" DBCSSOSI"14""15" DEFAULTBYTE"0" NODYNAM FDCLEAR FLAG"VSC2" NOFLAGAS"S" FLAGCD"W" FOLDCALLNAME"UPPER" FOLDCOPYNAME"UPPER" FP-ROUNDING"VSC2" HOST-NUMCOMPARE"1" IBMCOMP INDD"SYSIN 80 L A" MAPNAME NOMF NOMFCOMMENT NATIVE"EBCDIC" NESTCALL ODOSLIDE NOOPTIONAL-FILE OSEXT"CPY" OUTDD"SYSOUT 132 L A" PERFORM-TYPE"VSC2" NOQUOTE RECMODE"VSC2" RTNCODE-SIZE"2" NOSEG SIGN"EBCDIC" STICKY-LINKAGE"2" NOTRUNC TRUNCCOPY"8" VSC2"4" WARNING"3" ZEROLENGTHFALSE ZWB
Same as DIALECT(VSC24) except: VSC2"3"
Same as DIALECT(VSC24) except: NOANS85 COMS85 COMP NESTCALL RECMODE"OSVS" STICKY-PERFORM NOTERMPAGE VSC2"2"
Same as DIALECT(VSC24) except: NOANS85 COMS85 NESTCALL RECMODE"OSVS" STICKY-PERFORM NOTERMPAGE VSC2"1"
NOANS85 APOST AREACHECK ARITHMETIC"OSVS" ASSIGN"EXTERNAL" NOBOUND BYTEMODEMOVE CHARSET"EBCDIC" CHECKDIV"OSVS" COBFSTATCONV NOCOBOLDIR COPYEXT"CPY,CBL" COPYLBR NODBCHECK NODBCS NODBSPACE DEFAULTBYTE"0" NODYNAM FDCLEAR FLAG"OSVS" NOFLAGAS"S" FLAGCD"W" FOLDCALLNAME"UPPER" FOLDCOPYNAME"UPPER" FP-ROUNDING"OSVS" HOST-NUMCOMPARE"1" IBMCOMP INDD"SYSIN 80 L A" MAPNAME NOMF NOMFCOMMENT NATIVE"EBCDIC" ODOOSVS ODOSLIDE NOOPTIONAL-FILE OSEXT"CPY" OSVS OUTDD"SYSOUT 132 L A" PERFORM-TYPE"OSVS" NOQUOTE RDW RECMODE"OSVS" REPORT-LINE"132" RTNCODE-SIZE"2" SIGN"EBCDIC" STICKY-LINKAGE"2" STICKY-PERFORM TRACE NOTRUNC TRUNCCOPY"8" WARNING"3" ZWB
Same as DIALECT(OSVS) except: DOSVS FLAG"DOSVS"
APOST AREACHECK ARITHMETIC"VSC2" ASSIGN"EXTERNAL" NOBOUND BYTEMODEMOVE CHARSET"EBCDIC" CHECKDIV"COBOL370" COBFSTATCONV COBOL370"2" NOCOBOLDIR COMS85 COPYEXT"CPY,CBL" COPYLBR DBCSSOSI"14""15" DEFAULTBYTE"0" NODYNAM FDCLEAR FLAG"COBOL370" NOFLAGAS"S" FLAGCD"W" FOLDCALLNAME"UPPER" FOLDCOPYNAME"UPPER" FP-ROUNDING"COB370" HOST-NUMCOMPARE"1" IBMCOMP INDD"SYSIN 80 L A" MAPNAME NOMF NOMFCOMMENT NATIVE"EBCDIC" NESTCALL ODOSLIDE NOOPTIONAL-FILE OSEXT"CPY" OUTDD"SYSOUT 132 L A" PERFORM-TYPE"COB370" NOQUOTE RTNCODE-SIZE"2" NOSEG SIGN"EBCDIC" STICKY-LINKAGE"2" NOTRUNC TRUNCCOPY"8" WARNING"3" ZEROLENGTHFALSE ZWB
AREACHECK NOCOBOLDIR COMS85 COPYLBR NODATE DBCS"2" DEFAULTBYTE"0" FLAG"SAA" FLAGCD"W" FOLDCALLNAME"UPPER" FOLDCOPYNAME"UPPER" IBMCOMP NOMF NOMFCOMMENT NESTCALL ODOOSVS ODOSLIDE NOOPTIONAL-FILE RTNCODE-SIZE"2" SAA"2" NOSEG WARNING"3" ZEROLENGTHFALSE
Same as DIALECT(SAA2) except: NOANS85 NODATE SAA"1"
ANS85 NOAMODE NOAPOST NOAREACHECK ARITHMETIC"MF" ASSIGN"DYNAMIC" BOUND NOBYTEMODEMOVE CHARSET"ASCII" CHECKDIV"ANSI" NOCOBFSTATCONV NOCOBOL370 NOCOMP NOCOMS85 NOCOPYLBR DBCHECK DBCS"3" NODBCSSOSI DBSPACE DEFAULTBYTE"32" NODG NODOSVS DYNAM NOFDCLEAR NOFLAG NOFLAGAS NOFLAGCD NOFLAGSTD NOFOLDCALLNAME NOFOLDCOPYNAME NOFP-ROUNDING NOHOST-NUMCOMPARE NOIBMCOMP NOINDD NOMAPNAME MF"11" MFCOMMENT NOMS NATIVE"ASCII" NONESTCALL NOODOOSVS NOODOSLIDE OPTIONAL-FILE NOOSVS NOOUTDD PERFORM-TYPE"MF" QUOTE NORDW RECMODE"F" REPORT-LINE"256" RESEQ NORM RTNCODE-SIZE"4" NOSAA SEG SIGN"ASCII" NOSTICKY-LINKAGE NOSTICKY-PERFORM TERMPAGE NOTRACE TRUNC"ANSI" NOTRUNCCOPY NOVSC2 WARNING"1" NOXOPEN NOZEROLENGTHFALSE NOZWB
Copyright © 1998 Micro Focus Limited. All rights reserved.
This document and the proprietary marks and names
used herein are protected by international law.
Class Library | Embedded SQL Toolkit |