Page 1 of 1

Shall we use ROUND Function in MOVE statement?

PostPosted: Thu Jul 26, 2012 7:38 pm
by pjagathis
HI,

Shall we use ROUND function in MOVE statement ?

If So , please let me know the syntax.

Thanks in advance!

Re: Shall we use ROUND Function in MOVE statement?

PostPosted: Thu Jul 26, 2012 7:46 pm
by BillyBoyo
All the syntax is in the Cobol manuals, available on line. If you can find ROUND on the MOVE statement, I'll eat my keyboard. In fact, if you find ROUND I'll gobble up the mouse :-)

Re: Shall we use ROUND Function in MOVE statement?

PostPosted: Thu Jul 26, 2012 7:47 pm
by Robert Sample
Since MOVE is not restricted to numeric variables, you cannot use ROUNDED in a MOVE statement. And there is no such thing as a ROUND function in COBOL. There is a ROUNDED phrase, but functions and phrases are very different. Terminology is critical in IT, where similar terms may mean very different things. And phrase is not related to function in COBOL.

More importantly, why are you unable to look up the syntax for the MOVE statement in the COBOL Language Reference manual yourself? Instead of posting such a question on a forum, your long-term interests would be far better served by learning where the Language Reference manual is (hint: IBM makes all their manuals, pretty much, available on their web site) and then learning how to use it to look up syntax yourself. This is a HELP forum, not a READ-THE-MANUAL-FOR-YOU forum.

Re: Shall we use ROUND Function in MOVE statement?

PostPosted: Thu Jul 26, 2012 8:30 pm
by dick scherrer
Hello,

Suggest you investigate the COMPUTE . . . ROUNDED to do what you need.

Re: Shall we use ROUND Function in MOVE statement?

PostPosted: Fri Jul 27, 2012 10:33 am
by pjagathis
HI all,

Sorry for the confusion!!!

Thanks everyone!!!