I'm not sure you can say there is an advantage, The program will run
either way. The only advantage I know, is you don't have to drop out of
free form to define the *entry parms. I like that they are at the top of
the program since I used to define my *entry parms in the INZSR subroutine
that was at the bottom of my programs, but I could have defined it first
in my 'C' specs, so that's not really an advantage.
Someone replied that you get the prototype checking when called from
another program using a prototype, But if I understand correctly, The
calling program verifies your callp to the prototype, nothing compares
that to the called programs prototype.
From:
"Chamara Withanachchi" <chamaraw@xxxxxxxxxx>
To:
"RPG Programming on the AS400 / iSeries" <rpg400-l@xxxxxxxxxxxx>
Date:
04/15/2009 09:14 AM
Subject:
Re: *entry and PR with same program as EXTPGM
Sent by:
rpg400-l-bounces@xxxxxxxxxxxx
My method also like same. Where I'm putting a comment but i$ looking for
any positive advantages.
Regards,
Chamara Withanachchi
IBM Certified Power System Expert
RPG Programmer
(owner of www.rpgiv.info)
WWW.RPGIV.INFO
Mob: +971 50 5698644
Tel: +971 6 5595887
chamaraw@xxxxxxxxxx
www.rpgiv.info
i want to be future ready. i want control. i want an i.
Sent from my BlackBerry® wireless device
-----Original Message-----
From: Michael Ryan <michaelrtr@xxxxxxxxx>
Date: Wed, 15 Apr 2009 09:10:53
To: RPG programming on the IBM i / System i<rpg400-l@xxxxxxxxxxxx>
Subject: Re: *entry and PR with same program as EXTPGM
There isn't, besides perhaps the ability to use different keywords. I use
the PR/PI method for programs myself, but I usually have this comment:
// *ENTRY
Above it for programmers to search.
On Wed, Apr 15, 2009 at 9:00 AM, Chamara Withanachchi
<chamaraw@xxxxxxxxxx>wrote:
Hi all,
Can someone clarify me what is the different between *ENTRY and coding a
procedure as the same name of the program and using EXTPGM keyword
Ex;
Abcpgm pr extpgm('ABCPGM')
Parm1 10a
Abcpgm pi
Parm1 10a
Regards,
Chamara Withanachchi
IBM Certified Power System Expert
RPG Programmer
(owner of www.rpgiv.info)
WWW.RPGIV.INFO
Mob: +971 50 5698644
Tel: +971 6 5595887
chamaraw@xxxxxxxxxx
www.rpgiv.info
i want to be future ready. i want control. i want an i.
Sent from my BlackBerry® wireless device
--
This is the RPG programming on the IBM i / System i (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.