That replaces the exsr $Main great, thanks. I guess I need to read up on
how regular expression work, since I want to replace all of the exsr, and
not just $Main.

From: Buck Calabro <kc2hiz@xxxxxxxxx>
To: wdsci-l@xxxxxxxxxxxx
Date: 06/25/2014 02:25 PM
Subject: Re: [WDSCI-L] Mass replace exsr with callp ()
Sent by: "WDSCI-L" <wdsci-l-bounces@xxxxxxxxxxxx>

On 6/25/2014 1:48 PM, darren@xxxxxxxxx wrote:

With the new free form declarations, its become fairly easy to convert
into dcl-proc and endsr into end-proc. Then I do a find/replace to
exsr into CALLP, however, is there a good way to put a open/close paren
at the end of the call? For example, I want to convert EXSR $MAIN; into

Does this help?
findText regularExpression replaceWith "callp $1()" exsr(.*\$main)

This is the Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries (WDSCI-L) mailing list
To post a message email: WDSCI-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.