gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] tree data, embedding a language or string interpol


From: Patrick
Subject: Re: [open-cobol-list] tree data, embedding a language or string interpolation?
Date: Sat, 16 Mar 2013 15:06:04 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.16) Gecko/20121215 Icedove/3.0.11

On 16/03/13 12:16 PM, Michael Anderson wrote:
Patrick,

I just noticed my example was missing some quotes, it should have been:

Move Substitute("<title>   $title</title>" ,"$title",mytitle)  To MyHtml.

But it could just as well be a variable, like:

01 MySourceHtml Pic X(32000) Value "<title>  $title</title>".
Move Substitute(MySourceHtml ,"$title",trim(mytitle))  To MyHtml.

As for the 255 limit, I don't know of any,
I use Pic X(32768) all the time, then with trim() it could be used to
output 0 to 32k characters.

Anyone else know?


Hi Michael

Thanks! this solves my problem.

I am studying Cobol from several sources at once. One book I bought used, was Cobol for the 21st century 10th edition. This is where I read that.

I am so happy it's not true or I misread it !

-Patrick

P.S my internet connection is not good today, if anyone needs to get a hold of me.


reply via email to

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