Windows 10 -- Compiler does not recognize SPECIAL-NAMES in CONFIGURATION SECTION and generates multiple errors
000001 000100 IDENTIFICATION DIVISION.
000002 000200 PROGRAM-ID. MPK.
000003 000300 ENVIRONMENT DIVISION.
000004 000400 CONFIGURATION SECTION.
000005 000500 SPECIAL-NAMES.
000006 000600 ARGUMENT-NUMBER IS ARG-NUM
error: PROCEDURE DIVISION header missing
error: syntax error, unexpected ARGUMENT-NUMBER
000007 000700 ARGUMENT-VALUE IS ARG-VAL.
000008 000800 INPUT-OUTPUT SECTION.
error: syntax error, unexpected INPUT-OUTPUT
000009 000900 FILE-CONTROL.
error: syntax error, unexpected FILE-CONTROL
000010 001000 SELECT DBG-FILE
error: syntax error, unexpected SELECT
000011 001100 ASSIGN TO DBGMPK
000012 001200 ORGANIZATION IS LINE SEQUENTIAL.
000013 001300 SELECT INPUT-FILE
error: syntax error, unexpected SELECT
000014 001400 ASSIGN TO INPMPK
000015 001500 ORGANIZATION IS LINE SEQUENTIAL.
Try moving lines 6 & 7 to Area B.
Thats cc12
According to the way I read the GnuCOBOL 3.1.2 Programmer's Guide, "ARGUMENT-NUMBER" is a clause under the ACCEPT verb (also for DISPLAY and CALL), but is not an allowed item under the SPECIAL-NAMES paragraph.
https://sourceforge.net/p/gnucobol/code/HEAD/tree/external-doc/guide/PDFs/gnucobpg-letter.pdf
Does this usage compile cleanly under Microfocus COBOL?
I do not have Microfocus COBOL but it compiles OK in Fujitsu NETCOBOL and
COMPAQ COBOL
https://bs2manuals.ts.fujitsu.com/psCOBOL2000V16en/cobol2000-reference-manual-13781/environment-division-cobol-compiler-reference-manual-90/configuration-section-cobol-compiler-reference-manual-92/special-names-paragraph-cobol-compiler-reference-manual-95
http://manmrk.net/tutorials/cobol/coboldoc/cobrm_004.html#spec_names_com
Last edit: Simon Sobisch 2022-12-31