Re: [Cobolforgcc-devel] MOVE subroutine in UNSTRING
Status: Pre-Alpha
Brought to you by:
timjosling
|
From: Tim J. <te...@me...> - 2001-04-09 21:15:40
|
Steven, You are right. String is OK. For unstring the receiving area must not be justified but may be an integer without 'P' in the PIC. So it could be usage anything - binary, packed, display. I will have to think about how to structure this. Tim Josling "Steven O. Ellis" wrote: > > Tim, > > STRING is OK. The following rule disallows a right-justified receiving > item. Identifier-3 is the receiving item. > > 6.25.3 Syntax rules > > 4) Identifier-3 must not represent an edited data item and must > not be described with the JUSTIFIED clause. > > However, for UNSTRING, the receiving area may be numeric. UNSTRING > General Rule 6.27.3 (2) refers to the sending area, not the receiving > area. I do believe there is the potential for a numeric move per > General Rule 6.27.4 (13c), quoted below. And per MOVE General Rule > 6.19.4 (4b), when the receiving area is numeric and the sending area is > alphanumeric, "data is moved as if the sending operand were described as > an unsigned numeric integer." > > This is not something that needs to be resolved at once, but I am > thinking that the final version of UNSTRING is going to have to be able > to handle a more sophisticated move. > > Steven |