gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] substitute not found ?


From: Michael Anderson
Subject: Re: [open-cobol-list] substitute not found ?
Date: Sun, 08 Sep 2013 20:51:17 -0500
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130803 Thunderbird/17.0.8

Also (In the name of "Kickin Cobol up a notch" to the script kiddies)
Using OC compile directives, like:

cobc -free -ffunctions-all

You can:
Display Upper-Case(Substitute("This is the original string.";"original";"new";"string";"text")).

--
Mike.


On 09/08/2013 06:29 PM, Patrick wrote:
Sorry for all the noise today.

I figured out was wrong.

I was assuming that I could use a function "out in the open" to
manipulate data. However the manual says on page 6-11, that an intrinsic
function can be used anywhere in the procedure division that a literal
is allowed.

So in a MOVE statement or DISPLAY but we can't just have a statement
"foo" and in turn we can't just have function SUBSTITUTE.

-Patrick



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58041391&iu=/4140/ostg.clktrk
_______________________________________________
open-cobol-list mailing list
address@hidden
https://lists.sourceforge.net/lists/listinfo/open-cobol-list



reply via email to

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