View previous topic :: View next topic
|
Author |
Message |
chaudhary1984
New User
Joined: 03 Oct 2006 Posts: 5
|
|
|
|
Can we use comp-3 with synchronized clause |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|