Re: Cobol Linear search Vs Perfrom Until

From: LX-i (lxi0007_at_netscape.net)
Date: 07/19/04


Date: Sun, 18 Jul 2004 17:55:26 -0500

Robert Wagner wrote:

> LX-i <lxi0007@netscape.net> wrote:
>
>
>>Personally, I think INSPECT's hands are tied because the REPLACING
>>targets have to be of the same size (at least that's how it is on the
>>compiler I use daily). I'd like it to behave more like the VB "Replace"
>>verb, where I could replace x"31" by "" and shrink up the rest of the
>>data, or replace ">" with "&gt;" and have the data expand. Instead, I
>>had to write my own looping algorithm for that - no big deal. Once it
>>was written, it was done. :)
>
>
> You coulda done it with one line of code by thinking outside the box:
>
> EXEC SQL SELECT REPLACE (:my-string, '>', '&gt') INTO :my-string FROM DUAL
> END-EXEC.

Interesting - I may have to give that a shot. :)

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~   /   \  /         ~        Live from Montgomery, AL!       ~
~  /     \/       o  ~                                        ~
~ /      /\   -   |  ~          LXi0007@Netscape.net          ~
~ _____ /  \      |  ~ http://www.knology.net/~mopsmom/daniel ~
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
~         I do not read e-mail at the above address           ~
~    Please see website if you wish to contact me privately   ~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


Relevant Pages

  • Re: Cobol Linear search Vs Perfrom Until
    ... Robert Wagner wrote: ... I think INSPECT's hands are tied because the REPLACING ... >>targets have to be of the same size (at least that's how it is on the ... similar database) is not installed? ...
    (comp.lang.cobol)
  • Re: checkpoint pics needed
    ... showing the layout/location of the rings, quantities, sizes. ... replacing rings during your shop-out, ... just behind the cutout for the drop targets. ... I would really appreciate any pics of this area showing the layout, ...
    (rec.games.pinball)
  • Re: I spent a year yesterday!
    ... If Gottlieb didn't make the 90's style DT banks removable with Molex plugs, they would be worse than the EM DT banks. ... I've posted about replacing drop targets before, ...
    (rec.games.pinball)
  • Re: I spent a year yesterday!
    ... I've posted about replacing drop targets before, ... If they can figure out how to make a snap-in jigsaw blade, ... pin. ...
    (rec.games.pinball)
  • Re: Flash 3-Bank target not resetting
    ... the drop target springs. ... replacing the coil sleeve and the springs worked wonders. ... hence an easier task for the soleniod) the targets reset fine. ...
    (rec.games.pinball)