MFED vs native z/OS compile differences

OS/VS COBOL, COBOL II, Enterprise COBOL for z/OS. OpenCOBOL and OOCobol.
Abhishek Gupta
Registered Member
Posts: 10
Joined: Sun Apr 27, 2014 2:40 pm

MFED vs native z/OS compile differences

Post by Abhishek Gupta »

Has anyone here faced something similar or have a suggestion? Compiles on MFED but fails on z/OS. What differences should we check first? Thanks in advance for any pointers.
User avatar
Anuj Dhawan
Founder
Posts: 2838
Joined: Sun Apr 21, 2013 7:40 pm
Location: Mumbai, India
Contact:

Re: MFED vs native z/OS compile differences

Post by Anuj Dhawan »

MFED uses the Micro Focus COBOL compiler, while z/OS normally uses IBM Enterprise COBOL. MFED provides strong mainframe compatibility, but the two compilers are not identical. The first things to compare are:
  • COBOL dialect: MFED may accept Micro Focus extensions or tolerate syntax that IBM Enterprise COBOL rejects. Ensure MFED is compiling with the appropriate mainframe/IBM dialect and without unintended compatibility extensions.
  • Compiler versions: Check the MFED version and the IBM Enterprise COBOL version. A language feature supported by MFED may not exist in the installed IBM compiler release.
  • Compiler directives/options: Compare the MFED directives with the IBM compiler options, especially source format, reserved-word handling, ARITH[, TRUNC, NUMPROC, NSYMBOL, DYNAM, SQL and CICS settings.
  • Copybooks: Confirm that both environments use exactly the same copybook versions. On z/OS, also verify the SYSLIB concatenation order.
  • Source format: MFED can sometimes be more forgiving about tabs, columns, continuation lines and text beyond column 72. IBM fixed-format compilation may reject or truncate such lines.
  • SQL/CICS processing: If the program contains EXEC SQL or EXEC CICS, confirm that the required precompiler, translator or integrated compiler option is active on z/OS.
  • Character conversion: Check whether the source was transferred correctly from ASCII to EBCDIC and whether it contains hidden or unsupported characters.
The most important evidence will be the first IGY... error in the IBM compiler listing. Subsequent errors may only be cascading messages. If the first few IBM errors, compiler version and MFED directives are shared, the exact difference should be much easier to identify.
Thanks,
Anuj

Disclaimer: My comments on this website are my own and do not represent the opinions or suggestions of any other person or business entity, in any way.
User avatar
hollow_rowan69
New Member
Posts: 7
Joined: Mon Oct 12, 2026 10:06 am

Re: MFED vs native z/OS compile differences

Post by hollow_rowan69 »

When a program compiles under MFED but fails with IBM Enterprise COBOL, Anuj's list is the efficient order: dialect and compiler options first, then identical copybook versions and SYSLIB order, then source format past column 72. ARITH, TRUNC, NUMPROC, NSYMBOL and SQL or CICS precompile settings are where silent behavioral gaps hide even after the compile succeeds. The first IGY error in the IBM listing is the one to chase; later messages are often cascade noise. Confirming ASCII to EBCDIC transfer did not introduce hidden characters saves a long hunt through otherwise valid source.
Post Reply Previous topicNext topic

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Return to “IBM COBOL, GnuCOBOL (OpenCOBOL), OOCobol.”