gnucobol-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [open-cobol-list] True concatenate.


From: Dave Stratford
Subject: Re: [open-cobol-list] True concatenate.
Date: Wed, 03 Jul 2013 10:56:06 +0100
User-agent: Pluto/3.06 (RISC-OS/6.20)

On 02 Jul, Wim Niemans <address@hidden> wrote:

> No. No. It is STRING .... INTO ..... and not STRING ..... GIVING .....
> And it looks funny to say 
> STRING x DELIMITED BY SIZE, y DELIMITED BY SIZE INTO x
> while it is legal, it won't give you what you want since x is x and
> there would not fit y.

It very much depends upon what is in x and what is in y.

If, for example, x contains "ABC", followed by spaces, you could say
STRING x DELIMITED BY SPACES y DELIMITED BY SIZE INTO x.

Alternatively if x contains "A B C" followed by spaces, you may have to
say:

STRING x DELIMITED BY "  " y DELIMITED BY SIZE INTO x.
Here you are using double spaces because within your string uou only have
single spaces.

To give a better answer, we really need to know what x and y are likely to
comtain.

That all said, I'm not sure I have ever done a STRING x ... INTO x, so I'm
not absolutely sure it would work.

Dave

-- 
Hexagon Systems Ltd       Experts in VME solutions    www.hexagon-systems.co.uk
HSL Webz                  Experts in web design              www.hsl-webz.co.uk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]