The language the code was written in changes from system to system. The traps don't. The same ten patterns show up in COBOL, Fortran, Ada, JOVIAL, TAL and SabreTalk alike. A translation tool that doesn't model them formally may produce compileable code but may also quietly get the answer wrong.
The trap
Where it lives
What goes wrong
How DMS handles it
The trapUnstructured control flow
Where it livesCOBOL GO TO and PERFORM THRU; Fortran arithmetic IF and computed GOTO; TPF ENTRC/BACKC macros
What goes wrongJava and C# have no GOTO. Transliteration produces label soup, or code that looks right and isn't.
How DMS handles itA control-flow analysis pass recovers the loops and conditionals the jumps were expressing. Output has no labels and no jumps.
The trapDecimal and numeric semantics
Where it livesCOBOL COMP-3 packed decimal, PIC rounding and silent high-order truncation; Fortran precision and evaluation order
What goes wrongMoney mapped to IEEE 754 doubles loses cents. Reordered floating-point math changes results. Both surface months after cutover.
How DMS handles itCOMP-3 maps to BigDecimal, C# decimal or ScaledLongs with scale and rounding intact. Precision and evaluation order are tracked as rules and checked against baseline runs.
The trapMemory aliasing
Where it livesCOBOL REDEFINES; Fortran COMMON and EQUIVALENCE; JOVIAL OVERLAY
What goes wrongTools drop the aliasing, or convert to raw byte buffers on every access and kill performance.
How DMS handles itEvery field gets a native target type. Aliased storage becomes a typed class or struct with cached accessors, so code stays readable and fast.
The trapPlatform services in the code
Where it livesEXEC CICS, IMS DL/I, TPF macros, Guardian and Pathway, process pairs
What goes wrongFile-by-file translation loses transaction boundaries, locking and failover behavior.
How DMS handles itThe architecture is transformed first. CICS becomes Spring @Transactional, Pathway servers become services with APIs, process pairs become cloud-native failover.
The trapNon-relational data
Where it livesVSAM, IMS, ADABAS MU and PE fields, Enscribe, DataCom
What goes wrongThe schema is split between record layouts and vendor files. No modern relational target matches it.
How DMS handles itThe schema is recovered from how every program reads and writes the data. MU and PE fields become child tables. Access becomes JPA, JDBC or Hibernate, and migration scripts ship with the code.
The trapCopybooks, macros and preprocessors
Where it livesCOBOL COPY REPLACING; C and C++ #if build configurations; SabreTalk Prisym; TPF 4K segments
What goes wrongNaive expansion clones one shared record into thousands of classes. Preprocessing first throws away every build configuration but one.
How DMS handles itCopybooks become shared, deduplicated classes. C++ is parsed preprocessor-aware with #if structure intact. TPF segments fold into structured modules.
The trapCharacter encoding and collation
Where it livesEBCDIC data, keys and SORT steps
What goes wrongEBCDIC sorts letters before digits and lowercase before uppercase. ASCII is the reverse. Keyed reads and reports change silently.
How DMS handles itParsers read EBCDIC code pages natively, and collation differences are handled by named rules, not discovered in production.
The trapConcurrency and timing
Where it livesAda tasking and rendezvous; re-entrant TPF transactions; JOVIAL flight software
What goes wrongA new thread model changes behavior under load. Timing slips on new hardware.
How DMS handles itTasking maps to modern concurrency primitives with semantics preserved. Timing is compared against the original and confirmed on target hardware.
The trapBatch and operations glue
Where it livesJCL job streams, TACL scripts, restart and checkpoint logic
What goes wrongNobody scopes it. Six months in, the batch window won't close.
How DMS handles itJCL converts to Spring Batch with the same step dependencies and restartability. TACL becomes modern schedulers and CI/CD.
The trapDialects and extensions
Where it livesCOBOL vendor dialects, JOVIAL J3 and J73, Ada 83 vendor extensions, in-house 4GLs
What goes wrongGeneric parsers choke on dialect drift, or skip what they don't recognize.
How DMS handles itFront ends are validated against your entire codebase. Anything new gets added to the grammar, not skipped.
And dozens more: OCCURS DEPENDING ON, level-88 conditions, EVALUATE TRUE, Natural superdescriptors, Ada representation clauses, C++ god classes. Each is handled by named rules in the configuration we build for your engagement.