Gen 8.6 .NET proxy returns decimal numbers in scientific notation
search cancel

Gen 8.6 .NET proxy returns decimal numbers in scientific notation

book

Article ID: 395646

calendar_today

Updated On: 04-29-2025

Products

Gen Gen - Run Time Distributed Gen - Workstation Toolset

Issue/Introduction

.NET proxy which calls a z/OS COBOL CICS server that is returning numeric decimal fields as scientific notation instead of the decimal equivalent number in certain situations.

Decimal field defined as numeric length of 8 with 6 decimals.

When the .NET proxy test harness is invoked and the value for the field is less than  00.000100, it is returning the scientific notation value of the number in the field on the proxy.

For example,

  -  if the number retrieved is 00.004655, the field shows "0.004655"

  -  if the number retrieved is   00.000001, the field shows  "1E-06"

  -  If the number retrieved is  00.000045, the field shows  "4.5E-05"

Resolution

If the numeric attribute has length of 9 or greater, or has decimals, then the 'Implement in C, C# and Java with decimal precision' should be turned on.

Additional Information

For additional information, see the Messages section,  "For C, C# and Java generated applications, the option 'Implement ... with decimal precision' should be set to ensure accuracy is maintained in numeric calculations" topic on doc page Attribute Messages and Dialogs > Attribute Dialog.