Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
what is the difference between COMP and COMP SYNC?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: what is the difference between COMP and COMP SYNC?
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    Post subject: Re: what is the difference between COMP and COMP SYNC?
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    Post subject:
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: 238
Location: USA

PostPosted: Mon Jun 06, 2005 4:02 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Difference between EQUAL and EQUAL TO... jithinraghavan COBOL Programming 3 Thu Apr 19, 2018 2:22 am
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts ISMF Difference between volume count ... upendrasri IBM Tools 2 Tue Dec 05, 2017 12:40 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us