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
 
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 Query to compare 2 values of 1 column... Poha Eater DB2 13 Fri Mar 09, 2018 10:45 am
No new posts COMP Variables Mismatch gayu7 COBOL Programming 5 Wed Dec 20, 2017 5:06 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Date in where clause - Windows Karthikeyan Subbarayan DB2 9 Wed Nov 15, 2017 9:07 pm
No new posts CONDITIONAL USING COMP-2 WITH PROBLEMS. JOSUEGENTIL COBOL Programming 7 Wed Nov 08, 2017 11:13 pm

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