Shall we use ROUND Function in MOVE statement?



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

Shall we use ROUND Function in MOVE statement?

Postby pjagathis » Thu Jul 26, 2012 7:38 pm

HI,

Shall we use ROUND function in MOVE statement ?

If So , please let me know the syntax.

Thanks in advance!
Thanks and Regards,
Jagathis P
pjagathis
 
Posts: 67
Joined: Wed May 04, 2011 5:04 pm
Location: Chennai
Has thanked: 0 time
Been thanked: 0 time

Re: Shall we use ROUND Function in MOVE statement?

 

Re: Shall we use ROUND Function in MOVE statement?

Postby BillyBoyo » Thu Jul 26, 2012 7:46 pm

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

Re: Shall we use ROUND Function in MOVE statement?

Postby Robert Sample » Thu Jul 26, 2012 7:47 pm

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.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: East Dubuque, Illinois
Has thanked: 1 time
Been thanked: 222 times

Re: Shall we use ROUND Function in MOVE statement?

Postby dick scherrer » Thu Jul 26, 2012 8:30 pm

Hello,

Suggest you investigate the COMPUTE . . . ROUNDED to do what you need.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: Shall we use ROUND Function in MOVE statement?

Postby pjagathis » Fri Jul 27, 2012 10:33 am

HI all,

Sorry for the confusion!!!

Thanks everyone!!!
Thanks and Regards,
Jagathis P
pjagathis
 
Posts: 67
Joined: Wed May 04, 2011 5:04 pm
Location: Chennai
Has thanked: 0 time
Been thanked: 0 time


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post