IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

what is the difference between COMP and COMP SYNC?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vbhat

New User


Joined: 29 Apr 2005
Posts: 38

PostPosted: Mon Jun 06, 2005 11:05 am
Reply with quote

what is the difference between COMP and COMP SYNC?

CAN ANY ONE EXPLAIN ME

vbhat
Back to top
View user's profile Send private message
asr1983

New User


Joined: 31 May 2005
Posts: 11

PostPosted: Mon Jun 06, 2005 11:19 am
Reply with quote

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
View user's profile Send private message
senthilkumar selvaraju

New User


Joined: 30 May 2005
Posts: 16

PostPosted: Mon Jun 06, 2005 11:33 am
Reply with quote

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
View user's profile Send private message
mdtendulkar

Active User


Joined: 29 Jul 2003
Posts: 237
Location: USA

PostPosted: Mon Jun 06, 2005 4:02 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Timestamp difference and its average ... DB2 11
No new posts Difference when accessing dataset in ... JCL & VSAM 7
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
No new posts Interviewers are surprised with my an... Mainframe Interview Questions 6
Search our Forums:

Back to Top