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

How much bytes do PIC S9(5) COMP SYNC occupy?


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

New User


Joined: 13 Apr 2007
Posts: 59
Location: Chennai

PostPosted: Thu Aug 07, 2008 1:57 pm
Reply with quote

Hi,

Could you please tell me the bytes taken by PIC S9(5) COMP SYNC?

Thnx,
Reni
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Thu Aug 07, 2008 2:13 pm
Reply with quote

same as PIC S9(5) COMP

the sync stipulates to start this declaration on a mod4 address.
(mod8? - i forget, don't care, and won't look it up, because I would never use it)

sync does not affect the allocation size.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 07, 2008 3:05 pm
Reply with quote

Hi,

The SYNCHRONIZED clause is an optional clause in a data description entry. The SYNCHRONIZED clause specifies the alignment of an elementary item on a natural boundary in storage.

While never required, that's why Dick said - same as PIC S9(5) COMP, however, the SYNCHRONIZED clause may improve performance when specified for binary items used in arithmetic computations.

The SYNCHRONIZED clause may be coded for any elementary item. As an IBM extension, it may also be coded at the 01 level. In this case, it applies to every elementary item subordinate to the level 01 item. The SYNCHRONIZED clause is syntax-checked when specified for a DISPLAY item but has no effect on program execution.
Back to top
View user's profile Send private message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Chennai

PostPosted: Thu Aug 07, 2008 3:09 pm
Reply with quote

Thank you Anuj n Dick for the info provided.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Fri Aug 08, 2008 11:26 am
Reply with quote

You are welocme.. icon_smile.gif

- Ad
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 Masking variable size field - min 10 ... DFSORT/ICETOOL 4
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
No new posts Cobol COMP-2 fields getting scrambled... Java & MQSeries 6
Search our Forums:

Back to Top