Converting Cobol to C,C++ coding

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

Converting Cobol to C,C++ coding

Postby viki » Wed Aug 22, 2012 12:57 pm

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.
Posts: 10
Joined: Mon May 02, 2011 8:36 am
Has thanked: 0 time
Been thanked: 0 time

Re: Converting Cobol to C,C++ coding


Re: Converting Cobol to C,C++ coding

Postby enrico-sorichetti » Wed Aug 22, 2012 1:48 pm

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
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
Global moderator
Posts: 2692
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 138 times

Re: Converting Cobol to C,C++ coding

Postby prino » Wed Aug 22, 2012 3:15 pm

You can only do such a conversion if you have a very deep understanding of both languages. Nuff said...
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
Posts: 553
Joined: Wed Mar 11, 2009 12:22 am
Location: Oostende, Belgium
Has thanked: 3 times
Been thanked: 22 times

Re: Converting Cobol to C,C++ coding

Postby BillyBoyo » Wed Aug 22, 2012 3:28 pm

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.
Global moderator
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 264 times

Return to IBM Cobol


  • Related topics
    Last post