|
>> Or my original suggestion, BASED variables at run-time! I don't know of any language that would let you do this. COBOL for example will allow you to specify the base at run time but _only_ if the variable was originally based. i.e. in the COBOL LINKAGE section. This gives some additional flexibility because definitions such as those in QSYSINC can be copied into the linkage section and can therefore have their address set at run time. But this is only because the basing pointer is "hidden" by the compiler and referenced via the "Address of" syntax. Similarly with C you can only change the address of a variable that was originally pointer based. The only real difference with RPG is that you have to give the basing pointer for a given variable a name and therefore if someone (Rochester) has already built the copy member you can't add that syntax and have to use an alternate approach. That is why I suggested to Bruce that they look at changing the includes so as not to include the DS line. That would let you do exactly what you want. I still think the easy answer if for you just to copy/modify the includes (and add it to your list of "must do with new release") to include the based keyword. +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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.