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 |
I want to remove a duplicates form a given input field using cobol program. please Any one help me out to solve this ... Thanks in Advance.
What is the difference between comp and comp-3 usage? Explain other COBOL usage?s.
What rules are followed by the search verb.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first? Actually in which topic will we use dis???Plz explain it clearly
what happens when a copybook variables are declared using include statement ?
what are the working storage fields in BMS macro?
What will happen if we try to create GDG (+2) generaton instead of (+1) generation?
What is the Importance of GLOBAL clause According to new standards of COBOL?
Can we change the password using ALTER? anyone tried and changed?
What are the divisions in a cobol program? Which one is the mandatory division among them?
01 a pic x(4) value 'abcd' 01 b pic 9(3) can we move from a to b.if possible what would be stored in b.
What is a report item?