What is COMP SYNC?
Answers were Sorted based on User's Feedback
Answer / deepak goyal
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.
Is This Answer Correct ? | 13 Yes | 0 No |
Answer / padmanabha naidu.p
it will star with wordboundaries.while you are using sync
clause you wiil get slack bytes.
Is This Answer Correct ? | 10 Yes | 4 No |
Write some characteristics of cobol as means of business language.
How to retain the Duplicates in the one records?
What are declaratives and what are their uses in cobol?
What are the access modes of START statement?
what is redefines? where it can be effectively use for the purpose of memory utilization? give an example?
WHAT IS SOC3?HOW IT CAN BE RESOLVED?
How is sign stored in Packed Decimal fields and Zoned Decimal fields?
What is SQL Code -904 and -903 in DB2 And how to handle it?
Explain what you understand by passing by value.
There are two flat files one having 10 records and other having 5 records. write a cobol pgm to find the duplicate records(matching records)from both files.
We know that size of redefine and redefining need not to be same..Then does the below case true 01 ws-date pic 9(6). 01 ws-redf-date REDEFINES ws-date 05 ws-year pic 9(4) 05 ws-mon pic 9(2) 05 ws-day pic 9(2)
Can anybody give me example of subscript and index