S/MF
StackMF Knowledge Base • z/OS
Modernisation & Cloud 9 min read 2026-09-27

Handling ANSI/ASA Carriage Control Characters in Easytrieve to IMU Migration

A
Reviewed by Anshu
Chief Technology Architect & Mainframe Systems SME
Enterprise Modernization Advisory
Google AI Overview & Featured Snippet Quick Answer

Executive Summary: Handling ANSI/ASA Carriage Control Characters in Easytrieve to IMU Migration

Legacy mainframe reporting depends on Column 1 Carriage Control characters (ASA/ANSI: ' ', '0', '-', '1', '+'). Learn how to resolve page-eject discrepancies and printer alignment issues when migrating Easytrieve reports to COBOL using IBM Migration Utility.

1 Problem Statement & Architecture Context: Handling ANSI/ASA Carriage Control Characters in Easytrieve to IMU Migration

After migrating an Easytrieve batch program to COBOL via IMU, reports sent to production laser printers or digital report archive repositories (e.g. Mobius, CA-View/Deliver) print page headers across multiple pages or suppress form-feed page skips.

2 Technical Root Cause & Architecture Mechanics

Mainframe print files use either:

  • ASA/ANSI Carriage Control (RECFM=FBA or VBA): Column 1 contains ' ' (Single space), '0' (Double space), '-' (Triple space), '1' (New page / Eject), '+' (Overstrike without advancing).
  • Machine Code Carriage Control (RECFM=FBM or VBM): Hex opcodes (X'09', X'89').

Easytrieve abstracts carriage control, emitting codes automatically.

If IMU's emitted COBOL specifies WRITE ... AFTER ADVANCING but the output DD statement or DCB is misconfigured, column 1 shifts, causing corrupt alignment.

3 Implementation Guide & Modernization Strategy

# 1. Ensure RECFM=FBA on Output Datasets

In the execution JCL:

jcl
//SYSPRINT DD DSN=PROD.REPORTS.BILLING,DISP=(NEW,CATLG,DELETE),
//            SPACE=(CYL,(10,5),RLSE),
//            DCB=(RECFM=FBA,LRECL=133,BLKSIZE=27930)

Notice LRECL=133 (1 byte for carriage control + 132 print characters).

# 2. Configure IMU Carriage Control Mode in EZPARAMS

In EZPARAMS:

text
PRT-CTRL=ASA
ADVANCING=AFTER
PAGE-EJECT=1

# 3. Validate Emitted COBOL WRITE Syntax

Ensure the generated COBOL uses standard advancing:

cobol
WRITE REPORT-RECORD FROM WS-PAGE-HEADER
           AFTER ADVANCING PAGE.
       WRITE REPORT-RECORD FROM WS-DETAIL-LINE
           AFTER ADVANCING 1 LINE.

Technical Specifications Matrix

Attribute Specification
Target Environment IBM z/OS • Modernisation & Cloud
Key Technologies Easytrieve, IMU, Carriage Control
Delivery SLA Accelerated Sprint Delivery via StackMF Pods
Technical Reviewer Anshu, Chief Technology Architect • StackMF Architecture Pod

Production Readiness & Verification Checklist

? Frequently Asked Questions

What is the root cause of Handling ANSI/ASA Carriage Control Characters in Easytrieve to IMU Migration? ↓
Mainframe print files use either:.
How do you resolve Handling ANSI/ASA Carriage Control Characters in Easytrieve to IMU Migration in production? ↓
Legacy mainframe reporting depends on Column 1 Carriage Control characters (ASA/ANSI: ' ', '0', '-', '1', '+'). Learn how to resolve page-eject discrepancies and printer alignment issues when migrating Easytrieve reports to COBOL using IBM Migration Utility.
How can teams prevent Handling ANSI/ASA Carriage Control Characters in Easytrieve to IMU Migration in enterprise pipelines? ↓
Always inspect Column 1 in hexadecimal (`HEX ON` in ISPF) to verify valid ASA control characters.

Recommended Technical Runbooks

Authoritative Reference Documentation

Official IBM manuals, Redbooks, and vendor technical advisories:

Related Topics: EasytrieveIMUCarriage ControlASAReportingCOBOL
Diagnostic Runbook Notice & Nominative Fair Use Disclaimer

This diagnostic runbook is published by StackMF Technologies LLP for educational and architectural reference only. All code snippets, JCL, and procedures are provided "AS IS" without warranty of any kind. Always test changes thoroughly in non-production sysplex environments prior to production rollout.

IBM, z/OS, CICS, Db2, IMS, RACF, and IDz are registered trademarks of International Business Machines Corporation. Broadcom, CA-7, and Endevor are trademarks of Broadcom Inc. All other trademarks belong to their respective owners and are referenced under the Nominative Fair Use Doctrine (US Lanham Act 15 U.S.C. ยง 1125 / Section 30 of the Indian Trade Marks Act, 1999) solely for technology compatibility and diagnostic identification. StackMF Technologies LLP is an independent consulting entity not affiliated with or endorsed by these vendors. View Full Legal & IP Policy →

Enterprise Advisory

Struggling with Critical Mainframe Incidents or Vendor Renewal Pressure?

StackMF deploys certified Senior Mainframe Engineers fluent in both z/OS legacy internals (COBOL, DB2, CICS, VSAM, CA-7, Endevor) and modern cloud stacks (React, Kafka, AWS, Git). Onboard dedicated pods in 48 hours or cut Broadcom licensing by 60%.