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 overviewDeutschProgram structure / Programmstruktur
| Name | Syntax / form | Scope | Boundary |
|---|---|---|---|
| IDENTIFICATION DIVISION | IDENTIFICATION DIVISION. | Program identity and PROGRAM-ID. | Source-/syntax-backed subset; no whole-language or aggregate qualification claim. |
| DATA DIVISION | DATA DIVISION. | Data declarations and records. | PIC/USAGE subset is bounded. |
| PROCEDURE DIVISION | PROCEDURE DIVISION. | Executable paragraph/statement area. | Source-/syntax-backed subset; no whole-language or aggregate qualification claim. |
Data and arithmetic / Daten und Arithmetik
| Name | Syntax / form | Scope | Boundary |
|---|---|---|---|
| PIC / USAGE | PIC 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 / DIVIDE | COMPUTE x = expr | Arithmetic verbs and scaled destinations. | Source-/syntax-backed subset; no whole-language or aggregate qualification claim. |
| INSPECT / STRING / UNSTRING | INSPECT ... / STRING ... / UNSTRING ... | String and field manipulation. | Fixed-width and delimiter behavior is documented per form. |
Flow, calls and files / Ablauf, Aufrufe und Dateien
| Name | Syntax / form | Scope | Boundary |
|---|---|---|---|
| IF / EVALUATE / PERFORM | IF ... END-IF | Selection, paragraphs and structured flow. | Source-/syntax-backed subset; no whole-language or aggregate qualification claim. |
| CALL / LINKAGE | CALL 'module' USING ... | Module calls and linkage data. | Dynamic CALL is module-known only. |
| OPEN / READ / WRITE / CLOSE | OPEN INPUT file | Sequential file operations. | SQL/CICS/MQ are outside the subset. |
| JSON / XML | JSON GENERATE/PARSE; XML GENERATE/PARSE | Selected 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.