Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
strikeout Absent Member.
Absent Member.
2328 views

comma and dot

Hi All

   I have trouble like that :

http://community.microfocus.com/microfocus/cobol/extend_and_acucobol/f/20/t/6399.aspx

My program will be deployment in Italy. In Italy "." is used like decimal separation (ex. 1.000.000,00 )

In my program i put "DECIMAL POINT IS COMMA"

I put :

SET ENVIRONMENT "KEYSTROKE" TO "Data=46 44"
SET ENVIRONMENT "KEYSTROKE" TO "Data=44 46"

In this way, in numeric field the "." in numeric pad work, but in alphanumeric field when digit "," (from alphanumeric pad) appear "." and if I digit "." appear ",".

I want that in numeric field the "." in numeric pad work like decimal separator, but in alphanumeric pad the "," work like "," and "." remain "."

thank in advance

0 Likes
5 Replies
Micro Focus Expert
Micro Focus Expert

RE: comma and dot

 The Italian keyboard still contains a comma ... see attached screen shot

0 Likes
JimRead Absent Member.
Absent Member.

RE: comma and dot

I think you're working too hard.  People will type what they are used to seeing, all you have to do is parse it correctly.  Ideally, you would accept either format but display in one or the other depending on locale.

0 Likes
strikeout Absent Member.
Absent Member.

RE: comma and dot

Numeric field works in full. My problem is in alphanumeric field (ex. 01 ENTRY-FIELD....PIC X(120) )

In Numeric field, when I digit "," appear "." and vice versa.

Ex. when I type the string:

My favorite foods are pizza, pasta and ice-cream.

appears:

My favorite foods are pizza. pasta and ice-cream,

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: comma and dot

I spoke with Customer Care in Italy, their recommendation is.

remove this:

SET ENVIRONMENT "KEYSTROKE" TO "Data=46 44"

SET ENVIRONMENT "KEYSTROKE" TO "Data=44 46"

And let “DECIMAL POINT IS COMMA” do the job.

Also, our doc page may help:

documentation.microfocus.com/.../BKUSUSCONFS093.html

0 Likes
Micro Focus Expert
Micro Focus Expert

RE: comma and dot

When you set the Language, you are able to set other aspects of the Locale ..

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.