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
 

 

Can we use comp-3 with synchronized clause

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: Can we use comp-3 with synchronized clause
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: 3158
Location: Tucson AZ

PostPosted: Mon Feb 05, 2007 1:25 am    Post subject:
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

Site Director


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

PostPosted: Mon Feb 05, 2007 1:26 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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 Need help on SQL Dynamic WHERE Clause subratarec DB2 12 Sat Jul 16, 2016 3:11 pm
No new posts Need help to populate date in COMP-3 ... chetanambi DFSORT/ICETOOL 3 Tue Jun 21, 2016 12:25 pm
No new posts comparing comp-3 and unpacked numbers juares castro COBOL Programming 3 Mon May 30, 2016 6:46 pm


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