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



Looks like Mark's onto something here-- Brad, check the ILE C Programmer's
Guide (V5R1), pgs 326-327.  There's a good example of passing packed
decimal parms into a C program from a CL.

-Doc
---------------------------
Message: 2
From: "Mark Waterbury" <mark.s.waterbury@worldnet.att.net>
To: <midrange-l@midrange.com>
Subject: Re: CL calling a C procedure...
Date: Wed, 2 Oct 2002 10:22:24 -0600
Reply-To: midrange-l@midrange.com

Hi, Brad:

I don't think you can do that directly... but, IBM ILE C/400 has
built-in support for packed decimal data types, so you can just
declare your parameter as "decimal " and it should be ok... then,
you can always convert to float if needed, using an assignment
statement, if you really need it as a "float".

Regards,

Mark S. Waterbury

----- Original Message -----
From: "Brad Stone" <brad@bvstools.com>
To: <midrange-l@midrange.com>
Sent: Wednesday, October 02, 2002 9:57 AM
Subject: CL calling a C procedure...


> I'm not that up on C, but I'm playing with some stuff and
> have a question.
>
> If I have a 15,5 decimal field in a CL, and I want to call a
> C procedure using CALLPRC, how would I pass this variable
> into a float to the C procedure on the 400?
> _______________________________________________
-----------------------------------------
Ed Doxtator, Analyst
Baxter International Healthcare
1435 Lake Cook Road, LC II-3
Deerfield, IL  60015
Voice: 847-940-5680




As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.