× 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.



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.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.