S0C7 data exception when comparing a field that is defined zoned numeric with a field that contains spaces
search cancel

S0C7 data exception when comparing a field that is defined zoned numeric with a field that contains spaces

book

Article ID: 55117

calendar_today

Updated On:

Products

Easytrieve Report Generator

Issue/Introduction

S0C7 data exception when comparing a field that is defined  zoned numeric with a field that contains spaces under release 11.6/11.6.01.  This error did not occur in the previous version 6.4.

 

Environment

Easytrieve Report Generator, release 11.6

Resolution

Easytrieve Report Generator release 11.6/11.6.01 handles fields that contain spaces differently from Easytrieve Plus Report Generator release 6.4.

Easytrieve 6.4 compiler used MVS assembler instruction PACK to PACK all zoned decimal data upon input. If zoned data was not correct, i.e. data contains a space character, the space is packed into the data and a space is converted to a 0. Upon unpack for output, the space character is seen as a 0.

Easytrieve release 11.6/11.6.01 performance improves the process of reading and displaying zoned numeric data by simply using MVS MVC instruction to move the data 'as is'. The result is a zoned numeric data field containing a space is unaltered and moved directly 'as is' from input buffer and then displayed as a space on output.

This is not considered to be a 'bug' in the Easytrieve r11.6/11.6/01 compiler. The users have defined the data as zoned numeric when in reality, it is not.