Re: Cobol Linear search Vs Perfrom Until
From: LX-i (lxi0007_at_netscape.net)
Date: 07/19/04
- Next message: LX-i: "Re: Layout Hell"
- Previous message: docdwarf_at_panix.com: "Re: Possibly stupid question for you IBM mainframers... :-)"
- In reply to: Robert Wagner: "Re: Cobol Linear search Vs Perfrom Until"
- Next in thread: Chuck Stevens: "Re: Cobol Linear search Vs Perfrom Until"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 ">" 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, '>', '>') 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 ~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- Next message: LX-i: "Re: Layout Hell"
- Previous message: docdwarf_at_panix.com: "Re: Possibly stupid question for you IBM mainframers... :-)"
- In reply to: Robert Wagner: "Re: Cobol Linear search Vs Perfrom Until"
- Next in thread: Chuck Stevens: "Re: Cobol Linear search Vs Perfrom Until"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|