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

Can we use comp-3 with synchronized clause


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
chaudhary1984

New User


Joined: 03 Oct 2006
Posts: 5

PostPosted: Mon Feb 05, 2007 12:46 am
Reply with quote

Can we use comp-3 with synchronized clause
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Feb 05, 2007 1:25 am
Reply with quote

The Fine Manual does not prohibit it, in fact for COMP-3 it says "Each item is syntax checked, but the SYNCHRONIZED clause has no effect on execution" probably because "The SYNCHRONIZED clause specifies the alignment of an elementary item on a natural boundary in storage" and the "natural boundry" of packed decimal is any byte.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Feb 05, 2007 1:26 am
Reply with quote

Hello,

There is no need to - certain binary instructions require full/double-word boundary alignment, packed-decimal (comp-3) does not. If the comp-3 data is in an input file/parm you must use it "where it is".

If you have a need to create and align a new comp-3 field you can do it by making it the first field in a new 01 level. An 01 forces alighment.

If you really need to align a comp-3 field, please post a description of why with an exampla.
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts COBOL - Move S9(11)v9(7) COMP-3 to -(... COBOL Programming 5
No new posts To search DB2 table based on Conditio... DB2 1
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