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



Jeff,

 You need to take out the VALUE keyword from the prototype, since CL can
only pass parms by reference (pointer.)

 -mark


Original Message:
-----------------
From: Jeff Crosby jlcrosby@xxxxxxxxxxxxxxxx
Date: Tue, 15 Apr 2003 09:08:10 -0500
To: MIDRANGE-L@xxxxxxxxxxxx
Subject: Date data type in CL

Folks:

I thought I knew what I was doing.  I have an RPG procedure in a service 
program that expects an *ISO date data type as the first parm.  The 
prototype is this:

D GetInvPDFDir    PR            80
D                                 D   DatFmt(*ISO) Value

I need to call this from a CL program.  I thought I therefore needed to 
define the parm in the CL as *CHAR length 10.  I did, and confirmed that 
it contains valid data such as '2003-04-15'.  When I debug the RPG 
service program, however, I am receiving garbage from the CL.

Any suggestions?  Thanks.



--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .




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.