Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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
No new posts Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts How can we create a flat file in JAVA... rakesh.v18 Java & MQSeries 7 Fri Sep 23, 2016 10:46 pm
No new posts Sync sort - Transpose TS70363 SYNCSORT 5 Tue Jun 28, 2016 3:18 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us