Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts how can i move s9(9) to s9(9) usage comp HARENDRA CHOUDHARY COBOL Programming 3 Mon Nov 06, 2017 12:10 am
No new posts Move from Comp3 variable to Edited Va... Revathy.nair0485 COBOL Programming 7 Fri Nov 03, 2017 3:30 pm
No new posts Finding difference between two PS fil... Vignesh Sid SYNCSORT 5 Mon Oct 30, 2017 1:13 pm
No new posts Difference in SORT & ICETOOL Mohan Kothakota DFSORT/ICETOOL 5 Fri Sep 22, 2017 4:56 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us