append a string to another

From: Tobias Neubert (t1_at_s-neubert.net)
Date: 12/20/04


Date: 20 Dec 2004 07:27:02 -0800

Hi,

I am a Cobol newby, trying to write a first program which reads in a
textfile, line by line and concatenates the lines to one big string. I
do the following:

------------
string thelongstring delimited by size
       In-Data delimited by size
  into thelongstring
---------------

thelongstring is 32000 bytes long, In-Data is 80 bytes long. It seems
that cobol appends In-Data at the very end of thelongstring, that is
after the last space at position 32000.

Please tell me how it is possible to solve my problem.

Thanks and Kind Regards,
Tobias Neubert



Relevant Pages

  • Re: append a string to another
    ... > I am a Cobol newby, trying to write a first program which reads in a ... line by line and concatenates the lines to one big string. ... > string thelongstring delimited by size ... > that cobol appends In-Data at the very end of thelongstring, ...
    (comp.lang.cobol)
  • Re: append a string to another
    ... > I am a Cobol newby, trying to write a first program which reads in a ... line by line and concatenates the lines to one big string. ... > string thelongstring delimited by size ... > Tobias Neubert ...
    (comp.lang.cobol)
  • Re: append a string to another
    ... STRING verb with reference modifiers denoting the content length of each ... SPACES clause, such as: ... > string thelongstring delimited by size ... > that cobol appends In-Data at the very end of thelongstring, ...
    (comp.lang.cobol)
  • Re: append a string to another
    ... Tobias Neubert schrieb: ... > I am a Cobol newby, trying to write a first program which reads in a ... > string thelongstring delimited by size ... Und Du willst es auch so mit der Anweisung '... ...
    (comp.lang.cobol)
  • Re: append a string to another
    ... > I am a Cobol newby, trying to write a first program which reads in a ... line by line and concatenates the lines to one big string. ... The delimiter needs to specify the end of the string. ...
    (comp.lang.cobol)