|
Hi Simon,
sorry for broaching this subject again.
I tried the example you sent me and I'm little bit confused.
When I use your prototype and specify the data parameter with keyword VALUE,
the program gets not compiled. The error message is : "*RNF3754 20 a
000600 A parameter cannot be passed by value to a program."
The only way to get the program compiled with a pointer ist the use of
keyword CONST like in my following example code:
* Prototype for Send Data Queue (QSNDDTAQ) API D QSNDDTAQ PR ExtPgm('QSNDDTAQ') D p$DtaQ 10A Const D p$DtaQLib 10A Const D p$EntryLen 5P 0 Const D p$Data * Const D p$KeyLen 3P 0 Const Options(*NoPass) D p$KeyData 256A Const Options(*VarSize:*NoPass) D p$AsyncRqs 10A Const Options(*NoPass)
D Data S 32767A
/free Data = 'ABC';
CallP QSNDDTAQ('TESTQ':'NOLL':%len(Data):%addr(Data));
Return; /end-free
Did I miss something on your example?
Regards, Simon Coulter. -------------------------------------------------------------------- FlyByNight Software AS/400 Technical Specialists
http://www.flybynight.com.au/ Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ Fax: +61 3 9419 0175 \ / X ASCII Ribbon campaign against HTML E-Mail / \ --------------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
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.