GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Mainframe  >  COBOL
Go To First  |  Previous Question  |  Next Question 
 COBOL  |  Question 52 of 159    Print  
What is the logical difference between Move A TO B and COMPUTE B = A?

  
Total Answers and Comments: 3 Last Update: September 01, 2008     Asked by: pradeepbhatt 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
June 12, 2006 04:44:22   #1  
Vishnu Gupta        

RE: what is the logical difference b/w Move A TO B and...

In case of Move A TO B it will move whatever the value of a in to b.

it mean it will move numeric, alphanumeric and alphabatic value.

In case of  COMPUTE B = A it will assign the vale of a in to b.

but in case of compute only numeric value will be compute.


 
Is this answer useful? Yes | No
January 17, 2007 04:22:48   #2  
P.Karthikkumar        

RE: What is the logical difference between Move A TO B...

Hi,

  Up to my knowledge, compute can handle only numeric items. But Move statement is having capability to handle numeric, alphabatic and alphanumeric items.

Thanks

P.Karthikkumar


 
Is this answer useful? Yes | No
September 01, 2008 06:59:59   #3  
prasenjit_in Member Since: April 2008   Contribution: 18    

RE: What is the logical difference between Move A TO B and COMPUTE B = A?
Move replaces values one by one, depending on the data type move is from left-right/right-left.
Compute on the other hand completely deletes the previous value in the variable and writes the new value to. 

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape