Vernon,

Since RPGTOOLBOX/RPGWIZ does all those things for me, I don't worry about it too much. But, love to learn from Craig's Examples, usually I could use the code else for other projects! <Big Smile>

For Manual Indenting using RDP, I use the ALT+R (Select Rectangle) to select a column, and then use F19 & F20 to shift left & Right. My co-workers are always amazed by that... <grin>

By the way, Linoma's tool, does all that with Options you can turn on/off such as:
Covert Calls, Create prototypes, update Eval, it does it all!

It also has a an Indent-level, optional for B001, E001 to insert into the source. Which I have turned off, since I use Free-Format. But, it can re-indent the code for you too!

Basically, I use this "User Action":
RPGTOOLBOX/RPGWIZ FROMFILE(&L/&F)
FROMMBR(&N)
TOFILE(&L/&F)
TOMBR(&N)
REPLACE(*YES)
FMTCALC(*FREE)
INDNEST(*INDENT5)
DOCNEST(*NO)

DOCNEST (Document Nesting Levels, B001, X001, E001, etc...)

The one in Java, is only for JAVA, as far as I know. Open your Java perspective to play around with it.

Window>Preferences>Java>Code Style>Formatter

Taking a few java class, I have found it very nice...

But... It does NOT work on RPGLE code!!!

I *think* there is already a "PFE" out there already...


-Ken Killian-
(423) 510-3129


-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Wednesday, March 27, 2013 8:20 AM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries
Subject: Re: [WDSCI-L] RDP 8.0.3 BOMBS on >Source>New>Procedure

Ken

I made a user action from at least a couple of Craig's commands. One is JCR4PROTO - it makes prototyped calls out of *ENTRY and CALLs with PARMs, etc. And JCR4MAX finishes what CVTRPGSRC didn't, like making EVALs out of MOVEs, etc. Lots of other things that can be helpful. And source is provided, if you don't like something or other exactly how Craig has done it. There are some things he puts in columns 1-5 that I might change someday.

I'm curious about the indenting question - I have used the indent option in RPGLE for /free - I do have some issues with it, but generally it has served me well. What is in the Java one that we could take advantage of?
I've not been to that dark side for a long time - heh - just kidding about the dark side!

Vern

On 3/27/2013 6:15 AM, Ken Killian wrote:
Vernon,

Yup, that is the one I use, the RPGTOOLBOX from Linoma Software. I programmed it in as "User Action" to Convert/Update to Free RPG.

RDP "User Actions" works exactly as "PDM Options", exact same syntax.
For those newbies that don't know... <grin>

Craig Rutledge is Brilliant! I love his open source tools. I have learned so much from his code! Many Kudos to Mr. Rutledge!

I am just very glad that my employer had purchased the RPGTOOLBOX before I even came on board. I use it extensively to update my Free-indent....

I *think* someone put in a PFE for RDP to Indent/format code. The Code formatting for Java on Eclipse is AWESOME! You seem to have complete control for your formatting preferences! It would be "nice" to have something like for RPGLE. But, I have a work around, RPGTOOLBOX.

I should try Craig's tool, but currently I am back-logged on work again...

Oh well, back to work!


-Ken Killian-
(423) 510-3129

-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx
[mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Tuesday, March 26, 2013 8:29 PM
To: Rational Developer for IBM i / Websphere Development Studio Client
for System i & iSeries
Subject: Re: [WDSCI-L] RDP 8.0.3 BOMBS on >Source>New>Procedure

Linoma has tools for converting RPG stuff - no problem mentioning them, since I only sort-of applied once to work there and didn't get a job.

Craig Rutledge has some open-source tools, one does a nice job of converting source. Google his name and you'll find him - jcrcmds.com, I think it is. And free.

Vern

On 3/26/2013 3:41 PM, Ken Killian wrote:
Gary,

My problem I believe is caused by No Hard-Code Program Name in the
"PI" (a.k.a. New Style Entry parameters)... <grin>

I would recommend to use Free-Format for SQLRPGLE...

After all, SQL is Free-Format. And RDP has a nice built in Convert to
Free Format, if you do NOT already know about that... <grin>

Luckily, I get to do all my new work in Free-Format. No more Fixed format for me!
I have converted most of my programs to Free-Format when performing updates. Most, but not all...

There are 3rd party tools out there that do a much better job than
the IBM Conversion utility. But, unless they are FREE, I am not
supposed to mention them on this form... (The rules)

PS. I delete the Prototypes, since I am on V7R1M0, and the prototypes are NO Longer needed! <Joy Joy> But, that "New Procedure Wizard" still puts them out there, which I remove the prototypes.

I hate if I need to update the parameters in TWO places on a procedure. So, since V7R1M0 does not require them, I delete them! Besides, I can see the prototypes with the Code-Assist anyway!

-Ken Killian-
(423) 510-3129


-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx
[mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Tuesday, March 26, 2013 4:03 PM
To: Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries
Subject: Re: [WDSCI-L] RDP 8.0.3 BOMBS on >Source>New>Procedure

Ken,
I have not been using >Source>New>Procedure I am on 8.0.3 for some time I just tried it and got the RPG Procedure - Create RPG procedure window I created MyNewSubPrc - seems OK I see the Prototype, the new sub proc, the outline was updated, nice . . .

Maybe (this from my experience) there is another "error"
causing 8.0.3 to "go away" - I have this problem,
seems to be caused by one of several conditions,
my latest was entering some embedded SQL and
neglecting to type the "+" on a fixed format
line within my SQL statement...minor things
like this seem to eventually cause RDP to exit . . .


-----Original Message-----
From: wdsci-l-bounces@xxxxxxxxxxxx
[mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Ken Killian
Sent: Tuesday, March 26, 2013 1:42 PM
To: Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries
Subject: [WDSCI-L] RDP 8.0.3 BOMBS on >Source>New>Procedure

Hi,

I must assume that IBM supports a few releases of RDP, just like it
does with the"IBM i". <Smile>

I am using RDP 8.0.3, and I am using this option:
Source>New>Procedure
It blows up....

It worked in WDSC 7.0, rdi 7.5, rdp 7.6....

So, I have been using this for a Long time. I think it worked on WDSC 6.0 too, not sure.

Sadly, it just "KILLS" RDP, and no warning messages....
RDP just "goes away" with NO warning...

Has anyone else ran into this Error on RDP 8.0.3?

Yes, I can create my procedure manually, but why is it blowing up? Or am I the only one encountering this error?

Any insight would be appreciated.

Thanks!


-Ken Killian-
--
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,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.


--
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,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.
--
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,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.

--
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,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/wdsci-l.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 by midrange.com 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.