|
Hello all, I am writing some service program to isolate other programmer of some complexities. To make my programs as flexible as possible, I am using parameters of variable size and then I use the operator descriptor to find out the actual length. Here is an example that works p SndKDtaQ b export d pi opdesc d QName 10a const d QData 1000a const options(*varsize) ... In this case, the CEEDOD API returns the actual lenght of the second parameters. Here is my problem p RcvKDtaQ b export d pi opdesc d QName 10a const d QData 1000a options(*varsize) ... In this case, I get an error at run time (CEE0502). It seems I can not retreive the operator descriptor of a parameter with the option(*varsize) that does not have the const option. Is this normal? Maybe I am doing something wrong. Any suggestion? Denis Robitaille Directeur services techniques Cascades Inc 819 363 5187 fax 819 363 5177 +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.