Skip to main content

Problem:

We have a product developed in C that uses the MicroFocus file handler (extfh).  The product works on a variety of Unix platforms, but we are having problems porting the product to RedHat Linux.  When we attempt to open the file, a 9/142 error occurs.

Resolution:

This is a problem with byte-ordering.  Using the CTF utility with the following options:

mftrace.level=info

mftrace.comp.mf.mffh.xfh#base=true

produced a trace which showed the Opcode being passed to the File Handler Open was 01FA, instead of FA01:

15:04:55.295 MF.MFFH.XFH 65536 1 "M" 01FA

Old KB# 2012

#netexpress
#AcuCobol
#ServerExpress
#COBOL
#RMCOBOL