Thanks, Hassam. That's what I've proposed. -Chuck Stevens|
Date: Sun, 1 May 2011 12:54:37 +0300
Subject: Re: Questions on data transfer and non-arithmetic handling rules
CC: charles.stevens@xxxxxxxx; stds-754@xxxxxxxxxxxxxxxxx
2011/5/1 Fred J. Tydeman <tydeman@xxxxxxxxx>
To answer Charles' original question following the same path that Fred took, we get the following:
5.4.2 Conversion operations says: "These operations shall not propagate non-canonical results. "
so a formatOf-convertFormat(source) from a source in one format to a destination in the same format will canonize any non-canonical input, i.e. it is not a bit for bit transfer.
On the other hand,
5.5.1 Sign bit operations says: "These operations may propagate non-canonical encodings."
so a copy(x) operation **may** be a bit for bit transfer.
I am not a COBOL writer but, in view of the above, I would propose that you can translate (COMPUTE B = A) to a convertFormat and translate (MOVE A TO B) to a copy(x) unless the A and B in the MOVE are not of the same format in which case you should use the convertFormat.
Hossam A. H. Fahmy
Electronics and Communications Department