When refactoring a COBOL application with both batch and online (CICS) components accessing the same business logic, what is the recommended approach?
Select an answer to reveal the explanation.
Short Explanation
You want to extract the shared business logic into a common service so batch and online callers invoke the same code. That eliminates duplication, keeps behavior consistent, and simplifies testing.
Full Explanation
Extract shared business logic into a common service so batch and online callers use one implementation, reducing duplication, inconsistency, and testing effort. Merging all programs, transforming online first while leaving batch unchanged, or moving batch to another partition do not remove duplication.