IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

difference b/w MOVE and COMPUTE


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Thu Apr 06, 2006 10:47 am
Reply with quote

hi,
Can anyone please explain me the difference between move and compute with respect to low values.
For example:Suppose a variable A has low values and it is moved to B and C thru different operations.
i)MOVE A TO B -->Result:Low values are moved to B
ii)COMPUTE C = A-->Result:Zeros are moved to C
Why is it so?Please explain .
Thanks in Advance,

Regards,
Muthuvel.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Apr 06, 2006 10:54 am
Reply with quote

How is these 3 variables are declared in working storage?

Quote:
Why is it so?Please explain .

Can be because COMPUTE cant be only used for Numeric items.

Regards,
Priyesh.
Back to top
View user's profile Send private message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Canada

PostPosted: Thu Apr 06, 2006 11:42 am
Reply with quote

hi,
All of the working storage variables are numeric 9(5).

Regards,
Muthuvel.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
No new posts What is the difference between Taskty... Compuware & Other Tools 2
Search our Forums:

Back to Top