Skip to main content

We are migrating MF COBOL server express 4.2 on HP-UX to server express 5.1 WP10 on IBM-AIX. how can I use spzero and host-nummove compiler directive together ?

We are migrating MF COBOL server express 4.2 on HP-UX to server express 5.1 WP10 on IBM-AIX. how can I use spzero and host-nummove compiler directive together ?

There is realy a Problem using ZEROSEQ together with some otrher directives. LISTFILE, p(prexml).   I placed already a tag with Micro Focus since 26/03/2014  (Incident 2671655  and 2670805) as far as I know it is still in Development.


We are migrating MF COBOL server express 4.2 on HP-UX to server express 5.1 WP10 on IBM-AIX. how can I use spzero and host-nummove compiler directive together ?

Hi Rolf,

Your issue with ZEROSEQ when used with the prexml directive has nothing to do with the problem mentioned in this post as it only affects the listing file generated by the compiler.

The reason SPZERO and HOSTNUMMOVE cannot be specified together is that they have conflicting behavior. You turn on HOSTNUMMOVE to emulate mainframe behavior when handling invalid data in numeric fields. SPZERO changes that behavior so in effect causes HOSTNUMMOVE to not be compatible with the mainframe.

If you are looking for mainframe compatibility you should set HOSTNUMMOVE HOSTNUMCOMPARE and SIGN-FIXUP directives on.

If you wish to change the behavior of spaces in a numeric display field to treat them like zeroes then you should use the SPZERO directive.

Thanks.