× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



That is the command out of Craig's tools that I use the most. Ever time
I go into a legacy program I convert *ENTRY.

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon Hamberg
Sent: Wednesday, June 19, 2013 10:05 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: Re: Converting *ENTRY & PLIST to free format

Booth

How about a tool that just does it - and you get source code to study?

Go to http://www.jcrcmds.com

That is Craig Rutledge' site, and he has a command called JCR4PROTO that
does the conversion for you.

It actually goes a step further than many would, by using variables for
the procedure name, as I recall - worth taking a look.

And it's free!

The basic process, though? You need a prototype (in earlier releases) of
your program. Make the parameters of the prototype match what is in your
*ENTRY PLIST.

Then you need a PI - the procedure interface. I almost always put this
right before the calculations - /free or fixed, it's the same.

Then comment out or delete the *ENTRY PLIST.

Basically you are declaring a procedure - it happens to be the MAIN
procedure. Its name has to be the same as the program name.

HTH
Vern

On 6/19/2013 4:39 PM, Booth Martin wrote:
Converting *ENTRY & PLIST to free format.

Are there some simple examples, tutorials, and explanations on
replacing *ENTRY? I am having trouble understanding the process.


--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To
subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
http://archive.midrange.com/rpg400-l.




Kevin Bucknum
Senior Programmer Analyst
MEDDATA/MEDTRON
Tel: 985-893-2550


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.