Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi All,

Can you please help me how to convert a decimal number say 0.7500 into S9(3)v9(4) format in vb.net. Thanks.
Posted
Comments
TnTinMn 27-Jan-14 20:22pm    
Please clarify your requirement.

Do you want to write a Binary Coded Decimal (or packed decimal, comp-3) file that would be read by a COBOL program?
I have never done this, but I found this old MS article that does the reverse (reads a BCD file). It has a lot of info on the file format that may help you. Just note that it is in BASIC not VB.Net.

http://support.microsoft.com/kb/65323
vidkaat 7-Feb-14 10:24am    
I need to convert a packed decimal to the cobol format s9(3)v9(4)

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900