I suggest seeing how this is used in other programs. It may be setting the pointer via %addr, %alloc, or a procedure call. Once the pointer has an address, you can then clear it.
-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Friday, July 31, 2009 9:32 AM
To: RPG programming on the IBM i / System i
Subject: Re: pointer problem
Did you assign a value to the pointer? For example, if you try to clear
the datastructure before setting the pointer this may happen.
You do NOT need to preclear the datastructure as in the following:
- Clear the data structure
- Assign the pointer to the right offset in your user space or whatever
you are using
Because the data structure will have all new values upon the assignment.
Rob Berendt
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.