×

Good News Everybody!

The new search engine is LIVE!

Please report any problems to david (at) midrange.com.




Should work fine.

You have to use CLLE.

Also, remember that procedure names are case sensitive, but RPG and
CL(?), normally upcase everything.

A demonstration

D MyProcedure pr

D MyProcedure2 pr extproc('MyProcedure2')

p MyProcedure b export
d pi
c return
p MyProcedure e

p MyProcedure2 b export
d pi
c return
p MyProcedure2 e


Now from DSPMOD:
Exported defined symbols:

Symbol Name Symbol Type
MYPROCEDURE PROCEDURE
MyProcedure2 PROCEDURE


To call MyProcedure:
CALLPRC MyProcedure
which is really the same as CALLPRC 'MYPROCEDURE'

But to call MyProcedure2:
CALLPRC 'MyProcedure2'
must be used.

HTH,
Charles



On Tue, Nov 4, 2008 at 8:50 AM, Alan Shore <AlanShore@xxxxxxxx> wrote:

Is it possible to call a subprocedure from a service program from within a
CL (or CLLE) program?
If so, does anyone have an example, or can point me in the right direction?
I thought CALLPRC was the thing to use, but it definitely is not working.

Thanks in advance



Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxxxxx
P:(631) 244-2000 ext. 5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-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-2026 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.