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 |
What is an index for tables?
What are the rules of the move verb?
I got user abend U4038 while compiling my runjcl.. can anyone help me?
How to convert bunch of words in a line to relvant ASCII values?
Hi , I am posting some questons which are asked at interview. These may help u for ur interview... what is static and dynamic call?
How to read records from flat file in reverse order through COBOL program?
14 Answers Accenture, Broadridge, IBM, MAT, Polaris, SPIC, Syntel, TCS, Wipro,
How do you fetch current date in normal cobol pgm and in cobol-db2 pgm?
how to display the dataset information?
How many divisions we have in Cobol ?
A s9(4). B v9(4) value 0.21 can i move this?
01 A pic 9(100) find record length of it
Determine the total no of bytes in the following. 01 rec1. 02 a pic x(6) 02 b redefines a. 03 c occus 6 times pic 9. 02 d occurs 6 times pic 9. 03 e pic x(5) 03 f pic 999.