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

comp sync word boundary


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

New User


Joined: 31 Jan 2004
Posts: 10
Location: Surandai,India

PostPosted: Fri Mar 19, 2004 7:09 pm
Reply with quote

dear sir,

I am having doubt on word boundary,

what is meany by word boundary?

What is its use?

give an example for this.

if i declare

comp s9(4) sync.

comp-3 s9(5)

How will it allocate?

Advanced thanks for ur reply. icon_redface.gif
Back to top
View user's profile Send private message
franclin

New User


Joined: 23 May 2003
Posts: 11
Location: Chennai, India

PostPosted: Mon Mar 22, 2004 8:12 am
Reply with quote

The word boundary is used for store the computational clause variables with sync option,
that is all sync class variables stores start from the word boundary,it will increase the speed of access time,

comp s9(4) sync. -it takes 4 bytes (one word)

comp-3 s9(5) - it takes 3 byte.


EX.
01 group.
05 field1 pic x(2). - it takes 2 byte from the first word

bounary, next 2 bytes are free

05 field2 pic s9(4) comp sync.- it start from next word & takes 2

bytes

05 field3 pic 9. -it takes next one byte from

second word boundary

05 field5 pic s9(3) comp sync.- it starts from the next word

boundary ,means start from

third word boundary.
REGARDS,

Francis Suman.S
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 PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
No new posts replace word 'MONTH' with current mon... SYNCSORT 11
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts Converting ASCII values to COMP-3 (ZD... JCL & VSAM 2
Search our Forums:

Back to Top