سؤال

I have a numeric field in a cics map and is of length 3. When i enter 10 in the field and try to insert to a database by storing into a working storage variable in cobol program, It is being inserted as 100. Why is this happening so? Is there any way to insert it in the beginning

هل كانت مفيدة؟

المحلول

Because the default for a BMP field is left justification with blank padding.

You need to add JUSTIFY=(RIGHT,ZERO) to your DFHMDF field definition.

Here's the CICS Application Programming Reference.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top