Edit Question
Richard Kreiss
rkreiss at verizon.net
Mon Nov 4 11:16:54 PST 2019
The issue may be that he needs to adjust the sequence of the edits.
rmStr rmword2 | rmword1 |rnpun2 |rmpun 1
I seem to remember that the order for an edit is for the most complicated (longest) to the easiest (smaller).
Personally if this edit is only for one field, I would prefer to do this in @wlfnn processing for that field. It makes it easier to change what happens from within processing then with an an edit where a change could cause the edit to fail. IO do have an edit which was done by Small Computer many years ago that I still sometimes have to use. This involved a field which was (7,sp) not (7.4) where sp aligned the decimal point 3 places to the right as the value could be 16.1250 or 16.00 or 16.2575. The client did not want the value to the right of the decimal point to be zero filled. So, sp filled with blank spaces.
I was asked why I needed this and I had to answer this is what the client wanted. They paid for the edit done by Small Computer which at the time was around the corner form my client's offices.
Richard
> -----Original Message-----
> From: Filepro-list <filepro-list-bounces+rkreiss=verizon.net at lists.celestial.com>
> On Behalf Of Ken Cole via Filepro-list
> Sent: Sunday, November 3, 2019 7:26 PM
> To: Filepro Lists <filepro-list at lists.celestial.com>
> Subject: Edit Question
>
> Posting for Stanley Barnett who for some reason is having issues posting to the
> list.
>
> Hi Experts,
>
>
>
> Could someone take a look at an edit I'm building which so far doesn’t work as a
> single unit. It is to remove punctuation and common words.
> Each line works as intended, but not when chaining them together. And I've
> tried a hundred variations of it.
>
> rmStr rmPun1 | rmPun2 | rmWord1 | rmWord2
> rmPun1 { !";"! | !":"! | !","! | !"."! | !"("! | !")"! | !"*"! | * }
> rmPun2 { !"&"! | !"#"! | !"~"! | !"@"! | !"$"! | !"%"! | * } rmWord1{ !"for "! |
> !"and "! | !"the "! | !"or "! | !"all "! | !"see "! | * } rmWord2{ !"new "! | !"old "! |
> !"gl "! | !"to "! | * }
>
> Thanks, Stanley
> _______________________________________________
> Filepro-list mailing list
> Filepro-list at lists.celestial.com
> Subscribe/Unsubscribe/Subscription Changes
> http://mailman.celestial.com/mailman/listinfo/filepro-list
More information about the Filepro-list
mailing list