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

 Print  |  
Question:  What is the difference between comp and comp-3 usage? Explain other COBOL usages?

Answer: Comp is a binary usage, while comp-3 indicates packed decimal. The other common usages are binary and display. Display is the default. 3/28/00 Dave Herrmann: 'I was reading your FAQ on Cobol, as an fyi Comp is defined as the fastest/preferred numeric data type for the machine it runs on. IBM Mainframes are typically binary and AS400's are packed.'


September 09, 2008 16:17:50 #4
 atherprvz   Member Since: September 2008    Total Comments: 1 

RE: What is the difference between comp and comp-3 usage? Explain other COBOL usages?
 

Binary representation of data item are called 'comp', while comp-3 is the packed decimal.
comp-1 & comp-2 are another usage. 

     

 

Back To Question