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



Francis Lapeyre wrote:
> 
> Barbara:
> 
> I knew that without the EXTPGM keyword, you can only use a prototype as an
> entry parameter list. But if you use it so, is EXTPGM optional?

I guess so, although "optional" implies that it's ok to leave it out,
and although the compiler doesn't enforce it for CRTBNDRPG and can't
enforce it for CRTRPGMOD, I think EXTPGM should be coded if it applies. 
But the EXTPGM information is only used when the prototype is being used
for a call, so you can get away without coding it.

> 
> Also, we have the Linoma RPG Toolbox, and I converted a program with entry
> parameters. It generated the PR and PI for the program, but it would not
> compile  using CRTBNDRPG until I added DFTACTGRP(*NO) and ACTGRP(*CALLER)
> (or a named group) to the header specs. I know I could create the module,
> then create the program using CRTRPGMOD and CRTPGM, but it's a lot cleaner
> to have all your ducks in a row by specifying all that in the H-spec,
> especially if there's only one module in the program.

To add the EXTPGM correctly, the conversion would have to know that the
source was for a program-entry procedure.  Manually adding EXTPGM would
be a good idea even if you decided you wanted DFTACTGRP(*NO).

> 
> -----Original Message-----
> From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
> On Behalf Of Barbara Morris
> Sent: Monday, October 4, 2004 4:06 PM
> To: rpg400-l@xxxxxxxxxxxx
> Subject: Re: Replacement for *entry plist
> 
> If the prototype has the EXTPGM keyword, you can compile with
> DFTACTGRP(*YES).
> 
> If the prototype is meant to call a program, it _should_ have the EXTPGM
> keyword.  Otherwise, it couldn't be used to call the program; it could only
> be used to defined the entry parms.
> 
> --
> This is the RPG programming on the AS400 / 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.


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.