|
M Hello Barbara, You wrote: >It may work, but I doubt it's actually supported to call a program >API with a null pointer. I imagine you're fairly safe the third parm >of QMHSNDPM, but if you prototype the third parm of QMHSNDPM >as const, you can pass '' when you have no replacement text. Even >better, define a named constant NO_REPLACEMENT_TEXT in your >qmhsndpm /copy file and code that as the parameter. As I mentioned earlier I suspect it is a side-effect of QMHSNDPM being written properly rather than a supported method. Still, while it works ... :) I do prototype the substitution data as CONST (because sometimes one might want to pump a literal value or named constant in) -- in fact any INPUT-ONLY parameter gets CONST unless I need to take the address using %ADDR in which case I'd use VALUE (but there are too many restrictions on VALUE to use it all the time) however I think I'd use *BLANK rather than '' or a named constant since the RPG-supplied figurative constant is just as obvious. It's a style thing ... I simply prefer using *OMIT rather than *BLANK. Hmm, a question for you: If the substitution data parameter is defined as D msgDta 32767 CONST OPTIONS(*VARSIZE) and a *BLANK is passed will RPG IV pass 1 byte or 32767 bytes? I can feel an experiment coming on ... Regards, Simon Coulter. «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» «» FlyByNight Software AS/400 Technical Specialists «» «» Eclipse the competition - run your business on an IBM AS/400. «» «» «» «» Phone: +61 3 9419 0175 Mobile: +61 0411 091 400 /"\ «» «» Fax: +61 3 9419 0175 mailto: shc@flybynight.com.au \ / «» «» X «» «» ASCII Ribbon campaign against HTML E-Mail / \ «» «»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«»«» +--- | 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-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.