|
INTERVIEW QUESTIONS
MAINFRAME
COBOL
DETAILS
Question: What is COMP SYNC?
Answer: Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT.
For binary data items, the address resolution is faster if they are located at word boundaries in the memory. For example, on main frame the memory word size is 4 bytes. This means that each word will start from an address divisible by 4. If my first variable is x(3) and next
one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ). If you specify SYNC, then the binary data item will start from address 4. You might see some wastage of memory, but the access to this
computational field is faster.
|
|
|
Category |
COBOL Interview Questions & Answers -
Exam Mode /
Learning Mode
|
Rating |
(0.3) By 7091 users |
Added on |
9/11/2014 |
Views |
69162 |
Rate it! |
|
|
Question:
What is COMP SYNC?
Answer:
Causes the item to be aligned on natural boundaries. Can be SYNCHRONIZED LEFT or RIGHT.
For binary data items, the address resolution is faster if they are located at word boundaries in the memory. For example, on main frame the memory word size is 4 bytes. This means that each word will start from an address divisible by 4. If my first variable is x(3) and next
one is s9(4) comp, then if you do not specify the SYNC clause, S9(4) COMP will start from byte 3 ( assuming that it starts from 0 ). If you specify SYNC, then the binary data item will start from address 4. You might see some wastage of memory, but the access to this
computational field is faster. Source: CoolInterview.com
If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
- There should not be any Spelling Mistakes.
- There should not be any Gramatical Errors.
- Answers must not contain any bad words.
- Answers should not be the repeat of same answer, already approved.
- Answer should be complete in itself.
|
|
Related Questions |
View Answer |
|
How many bytes does a S9(7) COMP-3 field occupy ?
|
View Answer
|
|
What is COMP-1? COMP-2?
|
View Answer
|
|
What is the difference between COMP & COMP-3 ?
|
View Answer
|
|
How is sign stored in a COMP field ?
|
View Answer
|
|
How is sign stored in a comp-3 field?
|
View Answer
|
|
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
|
View Answer
|
|
What do you do to resolve SOC-7 error?
|
View Answer
|
|
What is the difference between CONTINUE & NEXT SENTENCE ?
|
View Answer
|
|
When would you use in-line perform?
|
View Answer
|
|
How do you come out of an EVALUATE statement?
|
View Answer
|
|
What is the use of EVALUATE statement?
|
View Answer
|
|
What is the difference between performing a SECTION and a PARAGRAPH?
|
View Answer
|
|
How do you define a sort file in JCL that runs the COBOL program?
|
View Answer
|
|
What is binary search?
|
View Answer
|
|
What should be the sorting order for SEARCH ALL?
|
View Answer
|
|
What is the difference between SEARCH and SEARCH ALL?
|
View Answer
|
|
What is the difference between index and subscript?
|
View Answer
|
|
How do you define a table/array in COBOL?
|
View Answer
|
|
What does the IS NUMERIC clause establish ?
|
View Answer
|
|
What is level 66 used for?
|
View Answer
|
Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.
View All COBOL Interview Questions & Answers - Exam Mode /
Learning Mode
|