PBXB64 V23 language reference

COBOL supported commands and scope

Windows x64 subset: numeric processing, PIC/USAGE data, PROCEDURE DIVISION, CALL/LINKAGE, sequential files, selected JSON/XML, allocation and NATIONAL. SQL/CICS/MQ, embedded COPY, SYNCHRONIZED, XML PROCESSING PROCEDURE and non-text dynamic CALL targets are rejected. Newly authored cases remain unrun.

Status: experimental. Source basis: PBXB64/docs/COBOL_SCOPE.md, COBOL_SUBSET.md and PBXB64/src/frontends/cobol.

Back to language detailPBXB64 overviewDeutsch

Program structure / Programmstruktur

NameSyntax / formScopeBoundary
IDENTIFICATION DIVISIONIDENTIFICATION DIVISION.Program identity and PROGRAM-ID.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.
DATA DIVISIONDATA DIVISION.Data declarations and records.PIC/USAGE subset is bounded.
PROCEDURE DIVISIONPROCEDURE DIVISION.Executable paragraph/statement area.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.

Data and arithmetic / Daten und Arithmetik

NameSyntax / formScopeBoundary
PIC / USAGEPIC 9(...) / USAGE ...Numeric, alphanumeric, COMP/COMP-3 and NATIONAL data forms in the subset.Scale, packed and group rules follow the scope cards.
COMPUTE / ADD / SUBTRACT / MULTIPLY / DIVIDECOMPUTE x = exprArithmetic verbs and scaled destinations.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.
INSPECT / STRING / UNSTRINGINSPECT ... / STRING ... / UNSTRING ...String and field manipulation.Fixed-width and delimiter behavior is documented per form.

Flow, calls and files / Ablauf, Aufrufe und Dateien

NameSyntax / formScopeBoundary
IF / EVALUATE / PERFORMIF ... END-IFSelection, paragraphs and structured flow.Source-/syntax-backed subset; no whole-language or aggregate qualification claim.
CALL / LINKAGECALL 'module' USING ...Module calls and linkage data.Dynamic CALL is module-known only.
OPEN / READ / WRITE / CLOSEOPEN INPUT fileSequential file operations.SQL/CICS/MQ are outside the subset.
JSON / XMLJSON GENERATE/PARSE; XML GENERATE/PARSESelected JSON/XML generation and roundtrip forms.Shapes are limited; XML PROCESSING PROCEDURE is rejected.

PBXB64 is part of the PBX-Compiler package. Free for private use, cleanly licensed for business.