Skip to main content

Problem:

How to be able to have upper and lower case in a PROPERTY Statement in a datafield as property of a class. The problem here is that all letters are automatically changed into capital letters.

Resolution:

This is COBOL syntax and everything is automatically transformed into capital letters.

In order to have lower case or a mix of upper- and lower case letters you can do the following:

working-storage section.

01 TestValueAdd1 pic s9(9) comp property as "TestValueAdd1".

01 TestValueAdd2 pic s9(9) comp property as "TestValueAdd2".

******** ^^^^^^^^^^^^^ UPPER- and Lowercase

method-id. "InstanceMethod" as "MixedCase".

local-storage section.

linkage section.

Old KB# 6928