support: Customer Portal
Focused on delivering choice, investment protection and flexibility to organizations with valuable COBOL assets
 

Veryant Knowledge Base
Home > All Categories > isCOBOL Samples > is-java > How can I get the character used as decimal separator on the os?
Question Title How can I get the character used as decimal separator on the os?

It's possible to retrieve this info using from isCOBOL the classes:


java.text.DecimalFormat
java.text.DecimalFormatSymbols

Here is a simple isCOBOL sample source:

program-id. prg.

configuration section.
repository.
 class j as "java.text.DecimalFormat"
 class j2 as "java.text.DecimalFormatSymbols"

working-storage section.
77 var pic x any length.
77 w-j object reference j.
77 w-j2 object reference j2.

procedure division.
main.      
 set w-j to j:>new()
 set w-j2 to w-j:>getDecimalFormatSymbols()
 set var to w-j2:>getDecimalSeparator()
 display "Decimal separator is: " var.
 stop run.
Authored by: Valerio Biolchi This question has been viewed 6157 times so far.
Click Here to View all the questions in is-java category.
File Attachments File Attachments
There are no attachment file(s) related to this question.
How helpful was this article to you?
User Comments User Comments Add Comment
There are no user comments for this question. Be the first to post a comment. Click Here
Related Questions Related Questions
There are no other questions related to this question.
Article Information Additional Information
Article Number: 229
Created: 2013-12-23 4:23 AM
Rating: 3 Stars
 
Article Options Article Options
Print Question Print this Question
Email Question Email Question to Friend
Export to Adobe PDF Export to PDF File
Export to MS Word Export to MS Word
Bookmark Article
Subscribe to Article Subscribe to Article
 
Search Knowledge Base Search Knowledge Base



 
 

© Veryant - All Rights Reserved
Veryant and isCOBOL are trademarks or registered marks of Veryant in the United States and other countries. All other marks are the property of their respective owners.