Page 1 of 1

Converting Cobol to C,C++ coding

PostPosted: Wed Aug 22, 2012 12:57 pm
by viki
Hi All,

I'm currently working on the project to convert Cobol coding to C,C++ coding.

I have a line like

MOVE LOW-VALUES TO ws-storage.

What is LOW-VALUES refers in C,C++?

Please provide your ideas.

Re: Converting Cobol to C,C++ coding

PostPosted: Wed Aug 22, 2012 1:48 pm
by enrico-sorichetti
what does the cobol manual tell about LOW-VALUES ?

C/C++ is not aware of <COBOL SPECIAL NAMES>

just find out from the manual the LOW-VALUES <value> and use it in the proper initialization construct

Re: Converting Cobol to C,C++ coding

PostPosted: Wed Aug 22, 2012 3:15 pm
by prino
You can only do such a conversion if you have a very deep understanding of both languages. Nuff said...

Re: Converting Cobol to C,C++ coding

PostPosted: Wed Aug 22, 2012 3:28 pm
by BillyBoyo
LOW-VALUES is the lowest value in the collating system, so binary zero (unless you have SPECIAL-NAMES) with a length equal to the length of the field to which it is being moved.