What is the difference between comp and comp-3 usage ?
- COMP is 2 bytes.
- COMP is used for Binary Representation it allows only S and 9.
- COMP stores the data in the binary format.
- With COMP fields, you have to drag out a calculator and convert the hex value to find out the true value that is being used in a program.
- Memory usage is,
Comp-3
- COMP-3 is 8 bytes.
- Comp-3 is used for Packed Decimal values it allows S 9 V mostly it is useful for Decimal Calculation Values.
- COMP-3 stores the data in the BCD(Binary Coded Decimal)format.
- It is used to avoid rounding issues that occur when binary numbers are used to represent decimal fractions.
- This is particularly vital in systems that method massive volumes of economic transactions/amounts
- Memory usage is
Example :
- Banking, Credit cards, etc.
Other cobol usages :
- The usage clause specifies how the data item being stored internally .If no usage clause specified , the default usage clause would Usage is display
- Accenture interview questions and answers,
- Applied Materials interview questions and answers,
- Atos interview questions and answers,
- Capgemini interview questions and answers,
- CASTING NETWORKS INDIA PVT LIMITED interview questions and answers,
- CGI Group Inc interview questions and answers,
- Ciena Corporation interview questions and answers,
- cobol binary data type,
- cobol comp 3 sign,
- cobol comp 3 to numeric,
- Collabera Technologies interview questions and answers,
- comp,
- comp 1,
- comp 2,
- comp cobol,
- comp data type in cobol,
- comp fields in cobol,
- comp in cobol,
- comp in cobol with example,
- comp in cobol with examples,
- comp in mainframe,
- comp one,
- comp storage in cobol,
- comp values in cobol,
- comp-1 example in cobol,
- comp-3 converter,
- comp1 comp2 comp3,
- comp3,
- comp4,
- Dell International Services India Pvt Ltd interview questions and answers,
- FIS Global Business Solutions India Pvt Ltd interview questions and answers,
- Flipkart interview questions and answers,
- how to display comp variables in cobol,
- how to display comp-3 variable in cobol,
- IBM interview questions and answers,
- Indecomm Global Services interview questions and answers,
- Infosys Technologies interview questions and answers,
- Mavenir interview questions and answers,
- Mphasis interview questions and answers,
- NetApp interview questions and answers,
- Opentext Technologies interview questions and answers,
- Oracle Corporation interview questions and answers,
- packed decimal in cobol,
- packed decimal to numeric conversion in cobol,
- Persistent Systems interview questions and answers,
- RBS India Development Centre Pvt Ltd interview questions and answers,
- s9(4) comp how many bytes,
- s9(4) comp-3 how many bytes,
- SAP Labs India Pvt Ltd interview questions and answers,
- should have usage display,
- Societe Generale Global Solution Center interview questions and answers,
- Tech Mahindra interview questions and answers,
- types of usage clause in cobol,
- UnitedHealth Group interview questions and answers,
- usage binary in cobol,
- usage clause in cobol,
- usage is display in cobol,
- Virtusa Consulting Services Pvt Ltd interview questions and answers,
- Wells Fargo interview questions and answers,
- when to use comp and comp3 in cobol,
- when to use comp in cobol,
- Wipro Infote interview questions and answers,
- xansa interview questions and answers,
- Xoriant Solutions Pvt Ltd interview questions and answers