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



Barbara,
I realize that, but I was thinking in the context that few use
prototyped calls to call programs....
Thanks! :)
Bob
-----Original Message-----
From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]
On Behalf Of Barbara Morris
Sent: Monday, November 18, 2002 3:43 PM
To: rpg400-l@midrange.com
Subject: Re: What's the difference?

Bob Cozzi wrote:
>
> Programs, on the other hand, work a little differently. When a program
> calls another program and passes parameters, the parameters are not
> checked to see if they match what is required by the called program.

This is related to the calling programs or procedures with CALL or CALLB
and PARM opcodes, not to calling programs.

> As the called program runs, if it "touches" any of the parameters then
> the check is performed. Now "touching" a parameter can take on many
> forms. But if you use a simply *ENTRY/PLIST without mapping the parms
> into a data structure, then you can also use %PARMS to check for
> un-specified parameters and simply avoid touching them. This allows
you
> to call a program with 10 parameters defined and only pass 3.  Just
> don't touch parms 4 through 10 and you can get away with anything.

This part is true for all calls, prototyped or CALL + PARM.


_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing
list
To post a message email: RPG400-L@midrange.com
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l
or email: RPG400-L-request@midrange.com
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.