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



Right - that's the enhancement that I mentioned whereto I wasn't going to go - heh!

Charles Wilt wrote:
Vern,

Follow the link in the OP.

MAIN procedure is new for 6.1 capability that allows for a program
without the cycle code.

Charles

On Wed, Apr 22, 2009 at 8:04 AM, Vern Hamberg <vhamberg@xxxxxxxxxxx> wrote:
David

I don't know how you declare MAIN - you always get a main procedure,
unless you say NOMAIN in an H-spec - I do believe there is a change at
V6R1 in this area - I won't go there.

A so-called MAIN is the first (or only) module. In CLLE, that is always
the main procedure - in RPGLE, it is the first module and must not have
the NOMAIN specified.

But I don't understand the thing about not being able to use CALLP - you
can always use CALLP, as Scott said - absolutely no time you can't. You
simply must have a prototype for what you are calling - CALLP means
//"Call a Prototyped Procedure or Program"
<http://publib.boulder.ibm.com/iseries/v5r1/ic2924/books/c0925083624.htm>
- not "Call Procedure", by the way. Can you give us the statement that
seems confusing?

A google of CALLP ot me this little article by Paul Tuohy - you will
have to join SearchTarget, but it's free and a safe site -

http://search400.techtarget.com/tip/0,289483,sid3_gci967696_mem1,00.html

HTH
Vern

David FOXWELL wrote:
Hi Scott,


-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Scott Klement
Envoyé : mercredi 22 avril 2009 10:25

If you mean "what gets bound when I create a program/srvpgm
containing the CALLP" the answer is "the modules and service
programs you told it co bind".

Yes, that's what I meant to ask. I thought that binding the modules M1 and M2 meant some kind of copying of the code into the program object.
What I wanted to know was, if in M1 I have a CALLP to another program, then I think the code of that program is not duplicated in my calling program.



None of this is really related to cycle-main vs. main vs.
subprocedure calls... binding/calling works exactly the same
for the 3 types of procedures.

I think the infocenter is saying I can't use CALLP if I've declared MAIN in the module of the procedure to be called. Does that mean I need to use the fixed form CALL operation and I can not use a prototype?

Thanks.

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

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.