[Cobolforgcc-devel] COMPUTE and MOVE 2002
Status: Pre-Alpha
Brought to you by:
timjosling
From: Tim J. <te...@me...> - 2001-04-01 21:30:29
|
I have now implemented compute (compiler subset - no overflow/size error; only the subset's supported data types). Move is next. By the way Bill if you are reading this do you know what the following code should do (in COBOL 2002)? 01 v1 usage binary-char signed value 123. 01 v2 pic x(5). move v1 to v2. display "*" v2 "*". Is the answer the same if v1 is unsigned? how about this? move "00123" to v2 move v2 to v1 display v1. The description of move in the standards seems to assume a PIC is present for all elementary data items, but this is not so for binary-* and also for the floating point types which have a similar issue. Tim Josling |