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
 
How much bytes do PIC S9(5) COMP SYNC occupy?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
guruji
Warnings : 1

New User


Joined: 13 Apr 2007
Posts: 59
Location: Bangalore

PostPosted: Thu Aug 07, 2008 1:57 pm    Post subject: How much bytes do PIC S9(5) COMP SYNC occupy?
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: 6968
Location: porcelain throne

PostPosted: Thu Aug 07, 2008 2:13 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Aug 07, 2008 3:05 pm    Post subject:
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: Bangalore

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

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

Senior Member


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

PostPosted: Fri Aug 08, 2008 11:26 am    Post subject:
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    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 Error in SQL-PLIST3 'Above value tru... rikdeb DB2 4 Wed Sep 06, 2017 1:34 pm
No new posts Protection Exception while move 0 to ... Kevin Vaz CICS 10 Tue Oct 18, 2016 4:19 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
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm

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