Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

difference b/w MOVE and COMPUTE

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
muthuvel

Active User


Joined: 29 Nov 2005
Posts: 217
Location: Chennai

PostPosted: Thu Apr 06, 2006 10:47 am    Post subject: difference b/w MOVE and COMPUTE
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: 1452
Location: Chicago, IL

PostPosted: Thu Apr 06, 2006 10:54 am    Post subject: Re: difference b/w MOVE and COMPUTE
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: Chennai

PostPosted: Thu Apr 06, 2006 11:42 am    Post subject: Re: difference b/w MOVE and COMPUTE
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ROUNDED Problem with COMPUTE statement shalem COBOL Programming 11 Thu Feb 09, 2017 8:16 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 8 Wed Jan 25, 2017 8:24 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:23 pm
No new posts DB2 9.1.0 not move values to Host-Var... Miguel Fernandez DB2 0 Wed Jan 25, 2017 8:21 pm
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us