View previous topic :: View next topic
|
Author |
Message |
vbhat
New User
Joined: 29 Apr 2005 Posts: 38
|
|
|
|
what is the difference between COMP and COMP SYNC?
CAN ANY ONE EXPLAIN ME
vbhat |
|
Back to top |
|
|
asr1983
New User
Joined: 31 May 2005 Posts: 11
|
|
|
|
Hi Bhat,
Sync clause is specified with comp, comp-1,comp-2 items.
These items are expected to start at half/full/double word boundaries.
But this introduces slack bytes . |
|
Back to top |
|
|
senthilkumar selvaraju
New User
Joined: 30 May 2005 Posts: 16
|
|
|
|
The SYNCHRONIZED clause specifies the alignment of an elementary item on a natural boundary in storage.The SYNCHRONIZED clause is never required, but can improve performance on some systems for binary items used in arithmetic.When SYNCHRONIZED is not specified for binary items(comp),no space is reserved for slack bytes. |
|
Back to top |
|
|
mdtendulkar
Active User
Joined: 29 Jul 2003 Posts: 237 Location: USA
|
|
|
|
vbhat,
Refer to following link for more details on COMP SYNC clause
COBOL Language Reference Guide
Search on page 228-229
Hope this helps
Regards
Mayuresh |
|
Back to top |
|
|
|