|
Please, Jared, send the syntax of CALL statement you used.
Sincerelty
Domenico Finucci
Sistemi informativi, Tel. + 39 02-43.01.2494
Fiditalia S.p.A. via G. Silva, 34 - 20149 Milano
E-mail: domenico.finucci@xxxxxxxxxxxx
> Sito internet: www.fiditalia.it
>
-----Messaggio originale-----
Da: jared [mailto:jhunter@xxxxxxxxxxxx]
Inviato: venerdì 23 luglio 2004 23.08
A: C400 List; cobol400 list
Oggetto: [COBOL400-L] ILE cobol / C procedure call
I'm trying to compile a COBOL program that CALLs a C procedure and uses
the RETURNING clause, but I keep getting the following compile error:
---
Message . . . . : A CALL statement expected a return value from a
program that does not return a value or visa versa.
---
So first of all, the C procedure is declared to return int. But since I'm
compiling the COBOL into one module, compiling the C procedure into a
service program, and binding the modules later on...how is the COBOL
compiler supposed to know anything at all about whether or not my
C procedure returns a value?!? Is there a COBOL section for defining such
things?
This is all undertaken as a workaround, btw, since I still haven't gotten
the RETURN-CODE special register to reflect my C return values.
Have a good weekend, everyone-
-Jared
_______________________________________________
This is the COBOL Programming on the iSeries/AS400 (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/cobol400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.