![]() |
| 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 |
![]() Related Questions 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 Latest Answer : COMP Comp is used for Binary Representation it allows only S and 9 ... s9(01) to s9(04) it takes 2 bytes memory s9(05) to s9(09) it takes 4 bytes memory s9(10) to s9(18) it takes 8 bytes memory COMP-3 :- Comp-3 is used for Packed Decimal values it ... Latest Answer : For all of you out who have not heard about comp-4. Wake up. Comp-4 does exist and it is just like comp - ie. it is a half-word (2 bytes).This might help those of you who are confused about comp fields:COMP half word ... Latest Answer : COMP - Half word - s9(01) to s9(04) takes 2 bytes for storageFull Word - S9(05) to S9(08) takes 4 bytes of storageDouble word S9(09) - s9(18) takes 8 bytes. ... Latest Answer : For s9(3)v99 comp-3. system will take (5+1)/2 = 3bytes..For S9(1)v99 comp.Here system will take 2 bytes.
because we know that 1-4 range store 2bytes5-9 store 4 bytes10-18 store 8 bytes ... Read Answers (7) | Asked by : Bharath How to pass values from one jcl to another jcl, if how ? How to pass data from cobol to jcl? How to access jcl from cobol? How to display comp fields? Read Answers (3) | Asked by : mohan 1) Is more than one record description is allowed in a FD?2) Is NUMERIC EDIT fields can be used for Arithmatic operations?3) Is COMPUTE P,Q,W = A+ B/C -E ** 2 is a valid statement?4) Is LINKAGE SECTION is mandatory in a sub program?5) In edit fiels the character used for check protection is __________6) COMP-2 occupies _________ bytes?7) Maximum length of a numeric item ________ ? Latest Answer : We use comp field in cobol because when we want to store the data in binary form we use comp and the sign is placed in rightmost bit. c is used for +ve sign and d is used for -ve sign. ... what is comp-3 and advantage with examples? Latest Answer : COMP-3 is a computational method used in COBOL. COMP-3 is represented in Packed Decimail format. Decimails are alloed to this COMP-3 Field. Each digit occupies 1/2 bite of memory, so this declaration is useful and it conserves the memory.Ex: 01 A ... In real time in which situations we can use comp-3 and comp. What is the major difference between these two? Latest Answer : Comp is used to like accumulators and Comp-3 is used for Numeric data like amount etc ...
Sponsored Links
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||